Advertisement
xerpi

spaces2tabs.sh

Nov 8th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. SEARCH_FOLDER="."
  4.  
  5. for f in $(find $SEARCH_FOLDER -name '*.c' -or -name '*.h' -or -name '*.cpp' -or -name '*.hpp' -or -name 'Makefile');
  6. do
  7.     echo $f;
  8.     unexpand -t 4 "$f" > "$f.out"
  9.     mv "$f.out" "$f"
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement