Random stuff, testing things, and so on.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash |
|
|
|
for file in *; do |
|
# echo -n $file |
|
new_file=$(echo $file|sed -e 's/[^A-Za-z0-9._-]/_/g') |
|
if [ "$file" = "$new_file" ]; then |
|
# echo " not messing..." |
|
continue |
|
fi |
|
echo "$file => $new_file" |
|
mv "$file" $new_file |
|
done |
|
|
|
|