[opensuse] Re: BASH - better way to get total number of files matching glob??
7 Jun
2010
7 Jun
'10
11:00
David C. Rankin wrote:
On 05/26/2010 02:05 AM, Jon Clausen wrote:
Haven't tested it, but I'm pretty sure files with whitespace will break this, but you get the idea
That's what IFS=$'\n' is for :p
Since filename can have newlines in them, that won't really help you in all cases. The array counting method will work nevertheless, as no shell word interpretation is done that way. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
5079
Age (days ago)
5079
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joachim Schrod