Created
April 19, 2023 02:57
-
-
Save coskuntekin/21f4caa183c3fe9475df7babcd14a953 to your computer and use it in GitHub Desktop.
Rename file name to lowercase and add underscore for the spaces in the 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
#!/bin/bash | |
for file in *.png; do | |
new_file=$(echo "$file" | tr '[:upper:]' '[:lower:]' | sed 's/ /_/g') | |
mv "$file" "$new_file" | |
done |
Author
coskuntekin
commented
Apr 25, 2023
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment