aboutsummaryrefslogtreecommitdiff
path: root/replace-spaces-with-minus
blob: 13a74e6f61747816947cea17e9b331ef85317081 (plain) (blame)
1
2
3
4
5
6
#!/bin/sh

# replace spaces in filenames with -
for f in *\ *; do 
  mv "$f" "${f// /-}"; 
done