LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find command (https://www.linuxquestions.org/questions/linux-newbie-8/find-command-4175433498/)

gaurvrishi 10-22-2012 09:37 AM

Find command
 
Hi,

I want to search mail from inbox which is in my server in cur folder. So someone tell me that how can i grep mail between 8th-Oct to 14 Oct.
Mail which are showing 1350301635.H741754P25328, 350283170.H459188P7037. like this

TB0ne 10-22-2012 10:11 AM

Quote:

Originally Posted by gaurvrishi (Post 4812204)
Hi,

I want to search mail from inbox which is in my server in cur folder. So someone tell me that how can i grep mail between 8th-Oct to 14 Oct.
Mail which are showing 1350301635.H741754P25328, 350283170.H459188P7037. like this

You can read the man page on the find command. Pay particular attention to the "-name" and "-regex" command. Not sure where the date is in the file names you've provided, so it's hard to say what the context/regex should be.

If the dates aren't in the file names and you have to look IN the files, the "-H" flag will return just the file names, and grep will take whatever pattern you feed it.


All times are GMT -5. The time now is 06:52 AM.