From: DervishD <raul@pleyades.net>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Surely this can be done easier...
Date: Wed, 24 Dec 2003 22:10:29 +0100 [thread overview]
Message-ID: <20031224211027.GA30731@DervishD> (raw)
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/
next reply other threads:[~2003-12-24 21:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-24 21:10 DervishD [this message]
2003-12-24 21:43 ` Bart Schaefer
2003-12-24 23:59 ` DervishD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031224211027.GA30731@DervishD \
--to=raul@pleyades.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).