Mercurial > repo
view bin/tac @ 7649:1a5ffb0e99d1
<oerjan> learn_append oerjan He sometimes puns without noticing it.
author | HackBot |
---|---|
date | Tue, 03 May 2016 00:10:06 +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