diff options
author | pragmo <pragmo@pragmo.ano> | 2010-09-09 12:49:23 +0000 |
---|---|---|
committer | pragmo <pragmo@pragmo.ano> | 2010-09-09 12:49:23 +0000 |
commit | b3eb729f2693f0ffe3dad07ee64ff1956789837f (patch) | |
tree | 54732abe6907f798473ea6be5cef3e36c16238ee /scripts | |
parent | baa4c3d985254d6d2f6f924d468267e582eff338 (diff) | |
parent | 504b0919362171aa25f7ad9c712b3628a0cf76e5 (diff) | |
download | resdb-b3eb729f2693f0ffe3dad07ee64ff1956789837f.tar.gz resdb-b3eb729f2693f0ffe3dad07ee64ff1956789837f.zip |
Merge branch 'master' of git://git1.somerandomnick.ano
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 |