Re: [opensuse] BASH - better way to get total number of files matching glob??
- From: Philipp Thomas <Philipp.Thomas2@xxxxxxx>
- Date: Fri, 28 May 2010 00:50:56 +0200
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
- Follow-Ups:
- References:
- [opensuse] BASH - better way to get total number of files matching glob??
- From: David C. Rankin
- Re: [opensuse] BASH - better way to get total number of files matching glob??
- From: Per Jessen
- Re: [opensuse] BASH - better way to get total number of files matching glob??
- From: Jon Clausen
- Re: [opensuse] BASH - better way to get total number of files matching glob??
- From: David C. Rankin
- Re: [opensuse] BASH - better way to get total number of files matching glob??
- From: Jon Clausen
- Re: [opensuse] BASH - better way to get total number of files matching glob??
- From: David C. Rankin
- Re: [opensuse] BASH - better way to get total number of files matching glob??
- From: Jon Clausen
- [opensuse] BASH - better way to get total number of files matching glob??
- Prev by Date: Re: [opensuse] HP computers?
- Next by Date: [opensuse] sound in KDE broken....sort of
- Previous by thread: Re: [opensuse] BASH - better way to get total number of files matching glob??
- Next by thread: Re: [opensuse] BASH - better way to get total number of files matching glob??
- Index(es):