LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-22-2012, 09:37 AM   #1
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 45

Rep: Reputation: Disabled
Smile 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
 
Old 10-22-2012, 10:11 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,822

Rep: Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369
Quote:
Originally Posted by gaurvrishi View Post
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.
 
  


Reply

Tags
find


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with find command and rar/unrar command line krakatoa1 *BSD 6 09-11-2012 03:21 PM
[SOLVED] Find a file in directories without using find command sikanders Linux - Newbie 14 08-06-2010 08:47 PM
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 05:55 PM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 04:45 PM
can't find my find command! how to replace? dave247 Debian 4 11-19-2008 10:51 AM


All times are GMT -5. The time now is 07:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration