Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Parameter expansion
- X-seq: zsh-users 2268
- From: Mircea Damian <dmircea@xxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Parameter expansion
- Date: Wed, 31 Mar 1999 17:35:42 +0300
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
Hello,
I need some help here and maybe someone of you can help.
Supposing that I have this directory structure:
dir -+- backup -+- file.1
| +- file.2
| +- anotherfile.txt
| +- dont_backup
+- index.txt
And index.txt is:
file*
another*
I want to create an archive for the files that are matched by the contents of
index.txt
I tried in dir/ to run the command:
zip backup.zip $(<index.txt)
but that didn't worked because the file* another* weren't expanded. How do
I tell him(zsh 3.1.5) to expand the result of $(<index.txt)?
Thanks!
--
Mircea Damian
Network Manager
dmircea@xxxxxxxxx, dmircea@xxxxxx, dmircea@xxxxxxxx
MD65-RIPE, MD2225, MD1-6BONE
Messages sorted by:
Reverse Date,
Date,
Thread,
Author