diff options
author | Nick <nick@somerandomnick.ano> | 2010-09-08 19:39:16 +0000 |
---|---|---|
committer | Nick <nick@somerandomnick.ano> | 2010-09-08 19:39:16 +0000 |
commit | 5d46e420a56fcc2b57dc7b5653a9a3ddd601aaae (patch) | |
tree | 187cb94966f7abf2a9317aa780edebb6ba7ab476 /scripts | |
parent | 0e3d2d32d6bb8f624efab5ddf07575d20e6e2f85 (diff) | |
download | resdb-5d46e420a56fcc2b57dc7b5653a9a3ddd601aaae.tar.gz resdb-5d46e420a56fcc2b57dc7b5653a9a3ddd601aaae.zip |
updated a2.o on suggestions from anonno
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/head_-c_-1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/head_-c_-1 b/scripts/head_-c_-1 new file mode 100755 index 0000000..b2e7916 --- /dev/null +++ b/scripts/head_-c_-1 @@ -0,0 +1,9 @@ +#!/bin/sh + +#This script is necessary because head from GNU textutils 2.0 (on Borg's +# machine) doesn't implement negative arguments for the -n and -c options. + +#FIXME: The emulation here fails if there's a newline at the end: +#sed '$s/.$//' + +rev | tac | dd bs=1 skip=1 status=noxfer 2>/dev/null | tac | rev |