Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Find skipping files
Name: lolo Date: April 7, 2003 at 06:59:24 Pacific OS: SOL 8 CPU/Ram: SPARC
Comment:
Hi, How could i do with a find command to find all the the files of my dir, skipping *.gz, *.pid, *.sh ? I tried with -prune, but doesn't seems to work (and i am probably not good enough!!) Thank's
Name: nails Date: April 7, 2003 at 07:14:13 Pacific
Reply:
Hi:
# all on one line find . -type f ! \( -name "*.gz" -o -name "*.sh" -o -name "*.pid" \) -print
Regards,
Nails
0
Response Number 2
Name: serot Date: April 7, 2003 at 07:49:10 Pacific
Reply:
works fine. Thank's. Now, i just want to get, using you're command the files modified more than 1 one day ago. I tried adding -mtime +1, but i get all files.... Have an idea? Thank you
0
Response Number 3
Name: nails Date: April 7, 2003 at 10:04:48 Pacific
Reply:
Hi:
-mtime +1 should work. It works on my solaris 7 system. Keep in mind that -mtime +1 is actually files more than 24 hours.
If today's April 7 at 1000, you won't find files with a modification time of April 6 at 1700.
Regards,
Nails
0
Response Number 4
Name: lolo Date: April 8, 2003 at 02:35:13 Pacific
Summary: Sun sparc: what's the command to find a file say oratav, that would search in all directories and subdirectories from my home directory, thanks in advanced! ...
Summary: Platform: SunOS 5.6 I want to find all files in /foo (and recurse through all subdirectories) that contain ".pl". Anyone know how to do this? I have been trying grep and fgrep, but so far I have not b...