Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Passing sentences to an array
- X-seq: zsh-users 9101
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Passing sentences to an array
- Date: Mon, 18 Jul 2005 14:49:56 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
Hi sorry me again.
filessubject=($(egrep -i "note [0-9]{3}.*$1" note???.txt))
The above instead of a creating an array where each grepped line is an array element (desired
behaviour" , creates an array of each word in each of the lines.
I haven't got word split set as an option
$ setopt
extendedglob
interactive
login
monitor
nopromptcr
shinstdin
zle
--
zzapper
vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
http://www.rayninfo.co.uk/tips/ vim, zsh & success tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author