Skip to content

Instantly share code, notes, and snippets.

@bastos
Created September 23, 2009 12:42
Show Gist options
  • Save bastos/191953 to your computer and use it in GitHub Desktop.
Save bastos/191953 to your computer and use it in GitHub Desktop.
files=($(pwd)/lala*);
for file in $files; do
rename_file_name="$(echo $file | sed 's/lala/lele/')"
git mv $file $rename_file_name
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment