Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Parameter Expansion til Explosion
- X-seq: zsh-users 11294
- From: meino.cramer@xxxxxx
- To: zsh-users@xxxxxxxxxx
- Subject: Parameter Expansion til Explosion
- Date: Mon, 12 Mar 2007 04:47:09 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
...it is really killing me.
I read through zshall ("Parameter Expansion" "* Expansion") but
everything I tried failed.
I want to rename mp3 files from a non speaking name like 001.mp3
to one describing the contents of the mp3.
The problem are the spaces in the final filename. My script uses
mp3info to produce two parameters for "mv":
mv `<call to mp3info> <filename>`
replacing mv with echo produces (for example):
"001.mp3" "The eternal clock - Timeless part 1,mp3"
Adding "mv" lead to an error:
Directory 1.mp3 does not exist.
due to the spaces in the target filename.
I tried to surround both with extra instances of
\\\"
but nothing helps.
Is there any "final recipe" to cope with these [CENSORED]
windows-like filenames containing any character ?
Thank you very much for any help in advance!
Desperate,
mcc
--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author