diff options
author | beber <beber> | 2005-11-15 11:39:27 +0000 |
---|---|---|
committer | beber <beber> | 2005-11-15 11:39:27 +0000 |
commit | 91029e75dfc18fde6ebc249c16fa4bc23029b64f (patch) | |
tree | 9ba61ba06860a6ecaf96ac7bb814d5a5f27c77a4 /sh | |
parent | erm, need to check better for __UNUSED__ (diff) | |
download | espik-91029e75dfc18fde6ebc249c16fa4bc23029b64f.tar.xz |
add a strip script
Diffstat (limited to 'sh')
-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 |