remove shell script for renaming files
This commit is contained in:
parent
1cf0c8b1e7
commit
89f44e435e
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/zsh
|
|
||||||
|
|
||||||
directory=$1
|
|
||||||
|
|
||||||
for file in "$directory"/*; do
|
|
||||||
filename=$(echo "$file" | tr '[:upper:]' '[:lower:]') # convert to lowercase
|
|
||||||
filename="${filename// /-}" # replace spaces with dashes
|
|
||||||
filename="${filename//_/-}" # replace underscores with dashes
|
|
||||||
mv "$file" "$filename"
|
|
||||||
done
|
|
Loading…
Reference in New Issue