Re: [opensuse] BASH - better way to get total number of files matching glob??



On Thu, 27 May 2010 19:41:37 +0200, Jon Clausen <jon@xxxxxxx> wrote:

So if one has to do 'file type' operations on the objects later, one would
have to amend the code with some [ -f ${array[$i]} ] -ish tests, which might
end up eating away whatever performance gain one got to begin with.

Why? Bash has test built in AFAIK so you'd still have the advantage of
no subprocess.

Philipp
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx