micxas Posted July 31, 2014 Report Posted July 31, 2014 ala cheste only time stamps vastayemo, not the whole line. think_ww
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 grep -r "string" filename >> outputfilename.txt try this :4_12_13: thanks.. kaaani ikkada string ante knch,m cnfsng ... elaaa ani thinkng
Silver_mani Posted July 31, 2014 Report Posted July 31, 2014 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
Silver_mani Posted July 31, 2014 Report Posted July 31, 2014 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
micxas Posted July 31, 2014 Report Posted July 31, 2014 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..
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 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)
micxas Posted July 31, 2014 Report Posted July 31, 2014 baa check this out http://superuser.com/questions/439688/how-to-grep-a-log-file-within-a-specific-time-period CITI_$D# CITI_$D#
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 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
micxas Posted July 31, 2014 Report Posted July 31, 2014 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 ..
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 baa check this out http://superuser.com/questions/439688/how-to-grep-a-log-file-within-a-specific-time-period poddhunnna thega vethikaaa baa.. okkati ardamayye pagee dorakka thala scratching.. idhedho okeys laaga anipisthundhi..
Silver_mani Posted July 31, 2014 Report Posted July 31, 2014 poddhunnna thega vethikaaa baa.. okkati ardamayye pagee dorakka thala scratching.. idhedho okeys laaga anipisthundhi.. ur solution baa ...kummey ..it will work
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 ur solution baa ...kummey ..it will work andariki dhanyavaadaalu.. poddunne anni okkoti chesi choosi ... peru perunaa ayipoyaaka brahmi posani gif shake hand ichukuna
Revenge_NageswaraRao Posted July 31, 2014 Report Posted July 31, 2014 andariki dhanyavaadaalu.. poddunne anni okkoti chesi choosi ... peru perunaa ayipoyaaka brahmi posani gif shake hand ichukuna whatsapp lo gif pampinchu maaya
puli_keka Posted July 31, 2014 Report Posted July 31, 2014 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
xxxmen Posted July 31, 2014 Report Posted July 31, 2014 sed -n '/Jul 30 1:00:00/ , /Jul 18 1:10:00/p' xxx.log hope this helps
Recommended Posts