From: Siraaj Khandkar Date: Tue, 26 Oct 2021 15:49:10 +0000 (-0400) Subject: Implement a line-wise reversal tool X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=05749918379af4547e90fc0bcf955f5b0e5a06f6;p=khome.git Implement a line-wise reversal tool --- diff --git a/home/bin/revl b/home/bin/revl new file mode 100755 index 0000000..4f2e709 --- /dev/null +++ b/home/bin/revl @@ -0,0 +1,3 @@ +#! /usr/bin/awk -f + +{lines[NR]=$0} END {for (i=NR; i>=1; i--) print lines[i]}