Created
August 19, 2018 18:27
-
-
Save tejaskhot/b7a45ea11b2d0d441edeb7581fbef15a to your computer and use it in GitHub Desktop.
bash rename multiple files in folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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