Mercurial > repo
view 99 @ 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
author | HackBot |
---|---|
date | Sat, 30 Jan 2016 21:32:50 +0000 |
parents | 4685c5cd6ab6 |
children |
line wrap: on
line source
b=bottle a=({no+more+$b\s,1+$b,{2..99}+$b\s}+of+beer) w=on+the+wall x=(Take+one+down,+pass+it+around Go+to+the+store+and+buy+some+more) for i in {99..0};{ echo "${a[i]^} $w, ${a[i]}. ${x[!i]}, ${a[i-1]} $w." }|tr + \