Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 13 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