From 5d46e420a56fcc2b57dc7b5653a9a3ddd601aaae Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 8 Sep 2010 19:39:16 +0000 Subject: updated a2.o on suggestions from anonno --- scripts/head_-c_-1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/head_-c_-1 (limited to 'scripts') 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 -- cgit v1.2.3