Joshua Moerman
14 years ago
10 changed files with 45 additions and 33 deletions
@ -0,0 +1,12 @@ |
|||||
|
|
||||
|
DIRS="./*.cpp ./*.hpp ./kernels/*.cpp ./kernels/*.hpp ./attractors/*.stf" |
||||
|
echo "This program will delete all trailing whitespaces and will replace spaces with tabs" |
||||
|
|
||||
|
for file in ${DIRS} |
||||
|
do |
||||
|
echo "yay ${file}" |
||||
|
unexpand -t 4 ${file} | sed 's/[ \t]*$//' > ${file}.new |
||||
|
cat ${file}.new > ${file} |
||||
|
rm ${file}.new |
||||
|
done |
||||
|
|
Reference in new issue