![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 1 | 06-05-2008 10:52 PM |
| Little bit weired : Find files in UNIX w/o using find or where command | jatin.jain | Shell Programming and Scripting | 10 | 09-19-2007 03:47 AM |
| how to find a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 5 | 10-25-2006 02:39 PM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 02:38 PM |
| how to find a file in UNIX without find command? | bluo | Shell Programming and Scripting | 3 | 09-24-2003 08:47 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Find Command
Hi Guys
I want to write a script or a command tha will give me certain files and exclude others. For example I have log files that I want to move to another directory but I don't want to move the logs that were generated today...I am using HP-UX... Please Help Thanks |
| Forum Sponsor | ||
|
|
|
|||
|
find . -mtime +2 -print
Period (.) is for current directory. This will print all logs more than 2 days old. if you want to move those files to some other directory use mv command with -exec. Hope this will help you. |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|