Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
somehow offtopic: looping filenames
- X-seq: zsh-users 16773
- From: meino.cramer@xxxxxx
- To: zsh-users@xxxxxxx
- Subject: somehow offtopic: looping filenames
- Date: Mon, 20 Feb 2012 19:16:50 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
how can I do this in a most compact, direct, and zsh like way:
I habe a loop like this:
for fn *
do
flac $fn
done
Unfortunately, some file have 'illegal' filenames like
20120220-_-19db.wav
or
20120220 sensor10 up.wav
which parts flac sees as unknown commmand options or as
two file and the loop fails.
How do I have to modifiy the loop to make it immune against
such filenames ?
Thank you very much in advance for any help!
Best regards
mcc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author