Skip to content

Instantly share code, notes, and snippets.

@anoopengineer
Created March 6, 2012 12:47
Show Gist options
  • Save anoopengineer/1986093 to your computer and use it in GitHub Desktop.
Save anoopengineer/1986093 to your computer and use it in GitHub Desktop.
Useful but uncommon Linux Commands
Recursively deleting all backup files that CVS creates (CVS creates backup files like .#Filename.java.1.1):
find ./ -name \.\*|xargs rm -f
Recursively changing ownership of CVS checkout
find ./ -name Tag | xargs sed -i -e "s/old_username/new_username/"
Recursively removing tabs from source files:
find . -name *.java -exec sed -ie 's/<Ctrl V and then a TAB>/ /g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment