annotate bin/tac @ 7094:4a2788609dc2

<b_jonas> learn Elendil decided to try to save Numenor from its awful end by navigating to the undying lands and appealing to the Valar, but then he changed his mind, saved his family only and founded a new empire in Middle-earth.
author HackBot
date Sat, 05 Mar 2016 22:07:12 +0000
parents ff8fd5c8898c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6630
ff8fd5c8898c <izabera> ` printf \'#!/bin/bash\\nfor file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%%s\\\\n" "${lines[i]}"; done done\' > bin/tac
HackBot
parents: 6629
diff changeset
1 #!/bin/bash
ff8fd5c8898c <izabera> ` printf \'#!/bin/bash\\nfor file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%%s\\\\n" "${lines[i]}"; done done\' > bin/tac
HackBot
parents: 6629
diff changeset
2 for file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%s\n" "${lines[i]}"; done done