aboutsummaryrefslogblamecommitdiff
path: root/sh/strip.sh
blob: 81d1e57a6fdbd7b4923b66f454ed2c6f8ac20f6b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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