aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorbeber <beber>2005-11-15 11:39:27 +0000
committerbeber <beber>2005-11-15 11:39:27 +0000
commit91029e75dfc18fde6ebc249c16fa4bc23029b64f (patch)
tree9ba61ba06860a6ecaf96ac7bb814d5a5f27c77a4 /sh
parenterm, need to check better for __UNUSED__ (diff)
downloadespik-91029e75dfc18fde6ebc249c16fa4bc23029b64f.tar.xz
add a strip script
Diffstat (limited to 'sh')
-rw-r--r--sh/strip.sh14
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