Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Joining lists on the command line



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 } <>);"


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links