> 
> ls -R .../linux-3.3.6 | tee >(grep -m 5 devices > temp.txt)
> 
> could you please put together a command _your way_ (for me to try) that
> _completely_ and _successfully_ does what I had wanted to achieve:
> 



running the attached _.sh in the kernel 3.4.1 source directory

./_sh | wc
51719 393330 2466513


benchmarking my video-card:

time ./_.sh

real 7m14.331s
user 0m0.136s
sys  0m0.196s

built-in i7-2600 graphics in a x-terminal
very, very, very.. slow

benchmarking my solid-state disk:

time ./_.sh | tail -n8 _.all.txt
real 0m0.216s
user 0m0.096s
sys  0m0.116s

whow. probably all cached


_.all.txt:
-rw-rw-r-- 1 root root  2289  1. Jun 09:18 ioapic.h
-rw-rw-r-- 1 root root  1987  1. Jun 09:18 iodev.h
-rw-rw-r-- 1 root root  8472  1. Jun 09:18 iommu.c
-rw-rw-r-- 1 root root 12281  1. Jun 09:18 irq_comm.c
-rw-rw-r-- 1 root root   275  1. Jun 09:18 Kconfig
-rw-rw-r-- 1 root root 62374  1. Jun 09:18 kvm_main.c
ls: 0 / tee: 0
grep: 0 / cat: 0


_.txt
-rw-rw-r-- 1 root root 30247  1. Jun 09:18 at91rm9200_devices.c
-rw-rw-r-- 1 root root 34303  1. Jun 09:18 at91sam9260_devices.c
-rw-rw-r-- 1 root root 27868  1. Jun 09:18 at91sam9261_devices.c
-rw-rw-r-- 1 root root 38761  1. Jun 09:18 at91sam9263_devices.c
-rw-rw-r-- 1 root root 46158  1. Jun 09:18 at91sam9g45_devices.c



tobias

Attachment: _.sh
Description: application/shellscript

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to