Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (12 sloc) 186 Bytes
#!/bin/sh
if [ -f $1 ]
then
sed -i "s/[[:space:]]*$//" $1
else
if [ -d $1 ]
then
for i in `find $1 -iname *.R -type f`
do sed -i "s/[[:space:]]*$//" $i
done
fi
fi
You can’t perform that action at this time.