Mercurial > repo
view bin/tac @ 7125:d251c26c906e
<oerjan> learn Testing might eventually succeed.
author | HackBot |
---|---|
date | Sun, 06 Mar 2016 01:00:38 +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