1753708 Members
4918 Online
108799 Solutions
New Discussion юеВ

Re: grep command

 
monu_1
Regular Advisor

grep command

hi all,

i want to search a perticular text or all text in a file which would be written on perticular time.

Lets say want to serach all item which would be written in between 2.00PM to 2.15PM in a file.

Suggest plz

Thanks,
MKS
2 REPLIES 2
Ivan Krastev
Honored Contributor

Re: grep command

Use find + xargs - search files with specific modification time and use xargs + grep to check for presence of the text.

See find + xargs examples - http://www.kalamazoolinux.org/tech/find.html

regards,
ivan
James R. Ferguson
Acclaimed Contributor

Re: grep command

Hi:

# sed -n '/14:00/,/14:15/p' file

Regards!

...JRF...