From 05749918379af4547e90fc0bcf955f5b0e5a06f6 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Tue, 26 Oct 2021 11:49:10 -0400 Subject: [PATCH] Implement a line-wise reversal tool --- home/bin/revl | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 home/bin/revl 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]} -- 2.20.1