commit 317273f2a0046575a4e62b6bcc3e0f2c0811892a parent 617bc6d3f2c04e13e184560cf6606a72f212f117 Author: hhvn <dev@haydenvh.com> Date: Wed, 10 Mar 2021 23:37:58 +0000 .s/o/tac: openbsd 'tac' replacement Diffstat:
A | .scripts/openbsd-compat/tac | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/.scripts/openbsd-compat/tac b/.scripts/openbsd-compat/tac @@ -0,0 +1,14 @@ +#!/bin/awk -f + +BEGIN { + n=0 +} + +{ + line[n++]=$0 +} + +END { + for (i=n; i != 0; i--) + print line[i-1] +}