[Digikam-users] Not completely but a bit off topic question: looking for texteditor with macro capabillity
Benjamin GIRAULT
benjamin.girault at gmail.com
Sun Aug 28 16:48:15 BST 2011
Hi Rinus,
2011/8/28 sleepless <sleeplessregulus at hetnet.nl>:
> I have been wrestling a bit and ran quite quick in some sort of obstacle.
>
> this works fine
> mv *.* ../TEMP2/
>
>
> but this one
> for f in $(ls); do mv ${f} ../TEMP2/; done
Try this:
for f in $(ls); do mv $(echo $f | sed -e "s# #\\\\ #g") ../TEMP2/; done
It replaces every space with "\ " which should do the trick
(hopefully, I haven't tested).
Best,
--
Benjamin Girault.
More information about the Digikam-users
mailing list