Skip to content

Instantly share code, notes, and snippets.

@nadnerb
Created July 5, 2011 10:39
Show Gist options
  • Save nadnerb/1064636 to your computer and use it in GitHub Desktop.
Save nadnerb/1064636 to your computer and use it in GitHub Desktop.
rename files in directory
for i in `ls`; do FILE=`echo $i | sed 's/change/tothis/g'`; mv $i $FILE ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment