-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2013-04-04 at 12:54 +0200, Per Jessen wrote:
Carlos E. R. wrote:
I have that running for 17 minutes and it has not finished.
You have deliberately prolonged the agony by adding '-n 1' to xargs - that means xargs will fork 'echo' once per filename.
It was not my code ;-)
Try this:
xargs -0 printf "%s\n"
What a difference!
Telcontar:~ # time xargs -0 printf "%s\n" or much better: wc -l --files0from=listadeficheros Mmmm.... something wrong there.
Telcontar:~ # wc -l --files0from=listadeficheros
wc: unrecognized option '--files0from=listadeficheros'
Try `wc --help' for more information.
Telcontar:~ # wc -l --files0 from=listadeficheros
wc: cannot open `from=listadeficheros' for reading: No such file or directory
Telcontar:~ # wc -l --files0 --from=listadeficheros
wc: cannot open `--from=listadeficheros' for reading: No such file or directory
Telcontar:~ #
Telcontar:~ # l listadeficheros
- -rw-r--r-- 1 root root 192068567 Apr 4 02:06 listadeficheros
[man wc...]
Ah! It is:
Telcontar:~ # time wc -l --files0-from=listadeficheros
...
Had to abort it, it prints to the screen the entire list. There is no
quiet option :-?
Trying again....
Huh. It has got stuck somewhere in the middle. Locked.
Telcontar:~ # time wc -l --files0-from=listadeficheros
...
...
wc: /var/lib/ntp/proc/sysrq-trigger: Input/output error
0 /var/lib/ntp/proc/sysrq-trigger
1 /var/lib/ntp/proc/splash
48 /var/lib/ntp/proc/partitions
56 /var/lib/ntp/proc/diskstats
98 /var/lib/ntp/proc/crypto
1 /var/lib/ntp/proc/key-users
0 /var/lib/ntp/proc/kpageflags
32 /var/lib/ntp/proc/kpagecount
<--- stuck for a minute in there, at least.
^C
real 2m15.006s
user 0m0.469s
sys 0m1.976s
Telcontar:~ #
It is slower, because it prints to the screen, and it locks, producing no
output. :-?
- --
Cheers,
Carlos E. R.
(from 12.1 x86_64 "Asparagus" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
iEYEARECAAYFAlFdX+MACgkQtTMYHG2NR9XF4wCdHRtm9kSAkiN9/oS0plq/q2y9
yJAAnjsDrAp8/vgdhSffdWnGvjeZIBC9
=/g5o
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org