[Digikam-users] Not completely but a bit off topic question: looking for texteditor with macro capabillity

Johnny yggdrasil at gmx.co.uk
Sun Aug 28 15:49:14 BST 2011


sleepless <sleeplessregulus at hetnet.nl> writes:

> Hi linux people,
>
> 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
>
> does not work if you have file names with spaces.
>
> does that mean that for comfortable working in linux I have to rename
> my 1 billion files to file_names_like_this.ext?
>

No, you can just use something like 
,----
| for f in "$(ls)"; do mv "${f} ../TEMP2/"; done
`----
to handle spaces. 

-- 
Johnny



More information about the Digikam-users mailing list