diff options
-rw-r--r-- | sh/strip.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sh/strip.sh b/sh/strip.sh new file mode 100644 index 0000000..81d1e57 --- /dev/null +++ b/sh/strip.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +strip1() +{ + TMP=$(mktemp /tmp/XXXXXX) + cp $1 $TMP + sed -e '/^+/s/[ ]*$//' < $TMP > $1 + rm $TMP +} + +for i in $* +do + strip1 $i +done |