Re: [opensuse] Searching for string in many files [Was: 12.3 + ntfs + ext4 + USB3 + different copying speeds]
4 Apr
2013
4 Apr
'13
11:36
Bernhard Voelker wrote:
On 04/04/2013 12:54 PM, Per Jessen wrote:
You have deliberately prolonged the agony by adding '-n 1' to xargs - that means xargs will fork 'echo' once per filename.
Try this:
xargs -0 printf "%s\n" <listadeficheros | wc -l
or even better:
$ tr '\0' '\n' < listadeficheros | wc -l
Yup, much better.
Isn't it cool to have so many choices? ;-)
+1 -- Per Jessen, Zürich (7.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
4275
Age (days ago)
4275
Last active (days ago)
0 comments
1 participants
participants (1)
-
Per Jessen