Mercurial > repo
view bin/tac @ 8088:3f90926b83c9
<oerjan> learn Sgeolang used to change frequently, but eventually it rusted in place.
author | HackBot |
---|---|
date | Fri, 20 May 2016 00:47:30 +0000 |
parents | ff8fd5c8898c |
children |
line wrap: on
line source
#!/bin/bash for file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%s\n" "${lines[i]}"; done done