Results 1 to 4 of 4
Hi everyone, I'm a begineer with linux syntax ..
I want to search this folder, excluding "cache" & "ip" subfolders, size between 300 & 1 bytes, excluding "sess_*" session files..
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-23-2012 #1Just Joined!
- Join Date
- May 2012
- Posts
- 2
command find -> exlude files & folders ..
Hi everyone, I'm a begineer with linux syntax ..
I want to search this folder, excluding "cache" & "ip" subfolders, size between 300 & 1 bytes, excluding "sess_*" session files..
My syntax is aproximate & doesn't work on excluding these patterns ..
find /z/tmp/ -type f \( ! -name cache -type d -prune ! -name ip -type d -prune \) -not \( -name 'sess_*' -prune \) Thanks for help
- 05-24-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,657
- 05-24-2012 #3Just Joined!
- Join Date
- May 2012
- Posts
- 2
- 05-24-2012 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,657


Reply With Quote

