View Single Post
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#17
Originally Posted by jukzh View Post
Quick lookup in the manual and I found the way:
Code:
/home/user # time find . | grep ".*\.py$" | wc  
real	0m 0.91s
user	0m 0.12s
sys	0m 0.45s
       95        95      5352
/home/user # time find . -name "*.py" | wc  
real	0m 0.64s
user	0m 0.10s
sys	0m 0.46s
       95        95      5352
/home/user #
remember.. this should be noob friendly. "find -name" is normaly better in a script.. but "grep" is useful in more instances than just find. Both will do the job to locate the file. Also using ".", "*" or for that matter "?" is not needed for a noob.
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums