Skip to content

Instantly share code, notes, and snippets.

@effkay
Created August 6, 2009 13:18
Show Gist options
  • Save effkay/163305 to your computer and use it in GitHub Desktop.
Save effkay/163305 to your computer and use it in GitHub Desktop.
ls -la |awk /original/'{printf "mv "$NF" " ;sub(/original/,"new",$NF); printf $NF"\n"}' |sh
sed -i -e 's/original/new/g' file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment