mirror of
https://github.com/status-im/status-web.git
synced 2025-01-10 04:36:23 +00:00
11 lines
289 B
Bash
Executable File
11 lines
289 B
Bash
Executable File
#!/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
|