How can I find in only particular directories?
How can I find in only particular directories with the find command?
|
Depends ... one options would be
echo dir1 dir2 dir3|xargs -i find {} -name "file" What are you after, exactly? Cheers, Tink |
Thanks
I'm installing LFS and I use in find and diff to create package log manager. but I don't need to check the /dev /proc /home and /root directories. There is a way to only write the four directories since it's less? |
Untested, but ....
Code:
find . \( -path '/dev' -o -path '/proc' -o -path '/home' -o -path '/root' \) -prune -o -print Cheers, Tink |
All times are GMT -5. The time now is 01:44 AM. |