Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Joining lists on the command line
- Date: Fri, 11 Sep 2009 17:59:44 +0900
- From: Andrew Grover <andrew.grover32@example.com>
- Subject: Re: [tlug] Joining lists on the command line
- References: <20090911055611.GB5688@example.com> <20090911062647.GB24338@example.com> <1d581afe0909110109o54095f37u7b6c90131dc663b4@example.com>
On Fri, Sep 11, 2009 at 5:09 PM, Ian Barwick <barwick@example.com> wrote:
ls | perl -e 'while(<>) { chomp; push @l, $_ }; print join(",",@l);'
but you forgot perl's command line args:
ls | perl -lne 'END { print join ",", @w } push @w, $_'
=================================
Andrew Grover - grover@example.com
International Systems Research Co.
http://www.isr.co.jp
=================================
- References:
- [tlug] Joining lists on the command line
- From: Leo Howell
- Re: [tlug] Joining lists on the command line
- From: BALUTA Chris
- Re: [tlug] Joining lists on the command line
- From: Ian Barwick
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Joining lists on the command line
- Next by Date: [tlug] Free XBox (v1.1)
- Previous by thread: Re: [tlug] Joining lists on the command line
- Next by thread: Re: [tlug] Joining lists on the command line
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links