Page 2 of 2

Re: Background removal from reference image

Posted: 2018-12-11T08:59:22-07:00
by snibgo
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.

Re: Background removal from reference image

Posted: 2018-12-11T09:09:55-07:00
by classic12
Sorry corrected the last one replace space with "-"
for oldname in *
do
newname=`echo $oldname | sed -e 's/ //g'`
mv "$oldname" "$newname"
done

Re: Background removal from reference image

Posted: 2018-12-21T06:42:05-07:00
by ptamanekar
Use double quotes for file names