Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

printing arrays and index



Hi,
I'm using

print -C 1 $filessubject

To display the contents of the above array one entry per line

(thanx to this a previous posting in this NG)

I know want to precede each array entry with it's index number 1,2,3, etc

how do?


-- 
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