Find command with path and prune
Quote:
Quote:
requirement:- I want to find a file named cpuinfo in all location other than /proc |
|
Quote:
|
Yes sorry i edited my post some minutes ago :)
|
why don't you try the command locate? (and grep -v "^/proc/cpuinfo")? But probably locate will automatically skip /proc
|
Quote:
|
Code:
find / -path /proc -prune -o -name cpuinfo -print |
This helped me thanks colucix
|
All times are GMT -5. The time now is 02:02 PM. |