Carlos E. R. wrote:
On Wednesday, 2013-04-03 at 17:49 +0200, Per Jessen wrote:
Only if some of those shell scripts have quotes in their names, this will break too. (second xargs)
It worked :-)
It found the file:
/data/storage_b/Backups_parciales_particiones_test/Bombadil_sda1/root/bin/test_hd_make: #mkfs.ext4 -L test_$X /dev/sdb$X
In a partial backup of a previous installation. Those are the scripts I used to measure hard disk speed across 20 partitions or so that I mentioned on another post.
But it took too long:
real 134m50.851s user 56m45.657s sys 3m7.112s
If is only analyzing inside bash scripts, why did it took so long?
Some possibilities - because 'file' has to process each and every file found. - because you have 25 gazillion files? :-) - because your disk is veeeerrrrryyyyyyyyy sssssssllllloooooowwwwww :-) If you want to know if it is 'xargs file' or 'xargs grep': find / -type f -print0 | xargs -0 file | \ awk '/Bourne-Again/{print $1}' >/dev/null How long does that take? -- Per Jessen, Zürich (2.1°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