help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] how to understand the xargs


From: Dan Douglas
Subject: Re: [Help-bash] how to understand the xargs
Date: Wed, 28 Dec 2011 11:18:04 -0600
User-agent: KMail/4.7.4 (Linux/3.1.5-pf; KDE/4.7.4; x86_64; ; )

On Wednesday, December 28, 2011 09:40:55 AM Greg Wooledge wrote:
> As wonderful as arrays are, for this particular task, a simple glob is
> the way to go.  For processing all the files in a single directory
> (non-recursively), globs are almost *always* preferred.

Good point, I should have clarified this is just the general case of being 
tempted to use xargs for something not so as insane as parsing ls. Where files 
are involved... globs of course. (The results of which to be potentially stored 
in an array, or in a pinch, set -- glob)

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]