Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Surely this can be done easier...
- X-seq: zsh-users 6960
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Surely this can be done easier...
- Date: Wed, 24 Dec 2003 22:10:29 +0100
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
Hi all :))
I have a file containing a list of files, and I want those files
in a command line. The problem is that the filenames contain weird
characters, spaces and so on. Currently I do the following:
$ while read line ; do array=($array "$line") ; done < listing
$ command $array
I've tried things like 'command $(cat listing)', but obviously
they don't work because quoting.
Can this be done simpler? I think that I made this same question
a time ago, but I haven't found it in the mailing list archive :(
Thanks a lot in advance and happy holidays (if any) ;))
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author