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:31:53 +0900
- From: Ian Barwick <barwick@example.com>
- Subject: Re: [tlug] Joining lists on the command line
- References: <20090911055611.GB5688@example.com> <82c89d700909110049s5083b857p6a2972de5fb81f6f@example.com>
2009/9/11 David Shanahan <david@example.com>: > On Fri, Sep 11, 2009 at 2:56 PM, Leo Howell <leo@example.com> wrote: >> >> What's the most unixy way to put them into a comma-separated list using >> the command line? > > Is perl considered cheating ? > > ls | perl -e "print join(',', grep { chomp } <>);" Aha, you beat me to it. I thought there must have been a way to do this with a one liner but forgot about the possibilities of grep. If Perl isn't a "unixy" way of doing things, I don't know what is ;) Ian Barwick
- References:
- [tlug] Joining lists on the command line
- From: Leo Howell
- Re: [tlug] Joining lists on the command line
- From: David Shanahan
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Joining lists on the command line
- Next by Date: Re: [tlug] Joining lists on the command line
- 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