Skip to content

Instantly share code, notes, and snippets.

@tejaskhot
Created August 19, 2018 18:27
Show Gist options
  • Save tejaskhot/b7a45ea11b2d0d441edeb7581fbef15a to your computer and use it in GitHub Desktop.
Save tejaskhot/b7a45ea11b2d0d441edeb7581fbef15a to your computer and use it in GitHub Desktop.
bash rename multiple files in folder
# This would replaces names of all files in folder having the string ".obj.ply" with ".ply"
for filename in *; do newname=`echo $filename | sed 's/.obj.ply/.ply/g'`; mv $filename $newname; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment