Command interpreters (bash, Windows etc) break commands at spaces, except where the space is within a quoted string. So one version of your command has quotes.
Personally, I don't have spaces in filenames. This saves some grief.
Background removal from reference image
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Background removal from reference image
snibgo's IM pages: im.snibgo.com
Re: Background removal from reference image
Sorry corrected the last one replace space with "-"
for oldname in *
do
newname=`echo $oldname | sed -e 's/ //g'`
mv "$oldname" "$newname"
done
for oldname in *
do
newname=`echo $oldname | sed -e 's/ //g'`
mv "$oldname" "$newname"
done
-
- Posts: 1
- Joined: 2018-12-21T06:40:05-07:00
- Authentication code: 1152
Re: Background removal from reference image
Use double quotes for file names