Jump to content

Recommended Posts

Posted

ala cheste only time stamps vastayemo, not the whole line.  think_ww

  • Replies 60
  • Created
  • Last Reply

Top Posters In This Topic

  • Ruler4Dmasses

    24

  • micxas

    8

  • xxxmen

    7

  • Silver_mani

    6

Top Posters In This Topic

Posted

grep -r "string" filename >> outputfilename.txt

 

try this  :4_12_13:

thanks.. kaaani ikkada string ante knch,m cnfsng ... elaaa ani thinkng

Posted

konchem ee command elaa veyyalo confusing gaa vundhi... i mean last time part.. grep '2014-07-30 01:0'  ani isthe before 10th minute (9th min daaka ) ani meaningaaa? 

 

sed -n '/2014-07-30 01:00:00/,/2014-07-20 01:10:00/p' logfile idhi workout avvuddhani ekkado anipisthundhi.. dennni output to another new file elaa?... ante ee comm isthe .. oo 10000s of lines vasthaayanuko .. top to bottom.. capture cheyyalem kadaa cursor tho.... so kottha output file lo veyyamani daaniki chebithe... cheyyocchu kadaa

baa check this out 

 

http://superuser.com/questions/439688/how-to-grep-a-log-file-within-a-specific-time-period

Posted

konchem ee command elaa veyyalo confusing gaa vundhi... i mean last time part.. grep '2014-07-30 01:0'  ani isthe before 10th minute (9th min daaka ) ani meaningaaa? 

 

sed -n '/2014-07-30 01:00:00/,/2014-07-20 01:10:00/p' logfile idhi workout avvuddhani ekkado anipisthundhi.. dennni output to another new file elaa?... ante ee comm isthe .. oo 10000s of lines vasthaayanuko .. top to bottom.. capture cheyyalem kadaa cursor tho.... so kottha output file lo veyyamani daaniki chebithe... cheyyocchu kadaa

just redirect it to a output file baa sed -n '/2014-07-30 01:00:00/,/2014-07-20 01:10:00/p'  >> Yourfile.txt 

Posted

suppose 07/29/2104 3:00 to 3:10 anuko

 

grep -r "07/29/2014 3:0*" filename >> outpupfile.txt

 

I am not expert ila cheste only string vastademo not the whole line, but still guessing it might work...

give it a try baa..

 

 

 

Posted

ala cheste only time stamps vastayemo, not the whole line.  think_ww

i hope u understands .. anukuntaaa  

 

25/Jul/2013:01:00:00  ahbncdfghrertaisldka;slkd;aslanlals;dlkal

25/Jul/2013:01:00:00  asldkalskfalkgja;sldkasldkalskf;dasdk;a

25/Jul/2013:01:00:00 askdaoslkd;asfka;ghdoeorepgla;sda;sljdas;ld

 

on and some millions of lines vunnai baa... indulllo kaavalsina aa 10 mins (tptal line)

Posted

just redirect it to a output file baa sed -n '/2014-07-30 01:00:00/,/2014-07-20 01:10:00/p'  >> Yourfile.txt 

ok deenni choodaali okasaari

Posted

i hope u understands .. anukuntaaa  

 

25/Jul/2013:01:00:00  ahbncdfghrertaisldka;slkd;aslanlals;dlkal

25/Jul/2013:01:00:00  asldkalskfalkgja;sldkasldkalskf;dasdk;a

25/Jul/2013:01:00:00 askdaoslkd;asfka;ghdoeorepgla;sda;sljdas;ld

 

on and some millions of lines vunnai baa... indulllo kaavalsina aa 10 mins (tptal line)

yes when you grep for a string the whole line parses ani thinking ..

Posted

poddhunnna thega vethikaaa baa.. okkati ardamayye pagee dorakka thala scratching.. idhedho okeys laaga anipisthundhi.. 

ur solution baa ...kummey ..it will work 

Posted

ur solution baa ...kummey ..it will work 

andariki dhanyavaadaalu.. poddunne anni okkoti chesi choosi ... peru perunaa ayipoyaaka brahmi posani gif shake hand ichukuna

Posted

andariki dhanyavaadaalu.. poddunne anni okkoti chesi choosi ... peru perunaa ayipoyaaka brahmi posani gif shake hand ichukuna

whatsapp lo gif pampinchu maaya

Posted

i hope u understands .. anukuntaaa  

 

25/Jul/2013:01:00:00  ahbncdfghrertaisldka;slkd;aslanlals;dlkal

25/Jul/2013:01:00:00  asldkalskfalkgja;sldkasldkalskf;dasdk;a

25/Jul/2013:01:00:00 askdaoslkd;asfka;ghdoeorepgla;sda;sljdas;ld

 

on and some millions of lines vunnai baa... indulllo kaavalsina aa 10 mins (tptal line)

 

bhayya oka 100 lines ala pastebin.com lo paste chesi aa link ikkada veyyava..  i don't know linux stuff much but I can try a regular expression which you can use in  grep cat awk sed i guess.. sana rojulu ayyindhi avvi vaadi

Posted

sed -n '/Jul 30 1:00:00/ , /Jul 18 1:10:00/p' xxx.log    hope this helps

×
×
  • Create New...