Mercurial > repo
view bin/tac @ 7358:56f8ad45942b
<oerjan> le/rn spaghetti stack/A spaghetti stack is the most edible data structure.
author | HackBot |
---|---|
date | Mon, 04 Apr 2016 09:26:40 +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