From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12836 invoked from network); 22 Jul 2005 18:10:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Jul 2005 18:10:16 -0000 Received: (qmail 94738 invoked from network); 22 Jul 2005 18:10:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jul 2005 18:10:09 -0000 Received: (qmail 2197 invoked by alias); 22 Jul 2005 18:10:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9125 Received: (qmail 2187 invoked from network); 22 Jul 2005 18:10:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Jul 2005 18:10:02 -0000 Received: (qmail 93488 invoked from network); 22 Jul 2005 18:10:02 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 22 Jul 2005 18:09:55 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Dw1xF-0007ks-Q0 for zsh-users@sunsite.dk; Fri, 22 Jul 2005 20:09:01 +0200 Received: from 241.119-84-212.ippool.ndo.com ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2005 20:09:01 +0200 Received: from david by 241.119-84-212.ippool.ndo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2005 20:09:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: printing arrays and index Date: Fri, 22 Jul 2005 19:08:32 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241.119-84-212.ippool.ndo.com X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 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