Silver_mani Posted July 31, 2014 Report Posted July 31, 2014 edited.. please help appreciated. a big log file ...you need to capture rows between two timestamps ??
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 cat file_name | grep timstamp | awk{'print$rownumber'} can u explain a little please on this timestamp... eg: cat file_name|grep 00:00:00 - 00:10:00 |awk{'print$rownumber'} ani ivvacchaa command?
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 a big log file ...you need to capture rows between two timestamps ?? baaabu giffulese opika ledhu... sleef kooda ledhu kaani.. neeko dannam please.. rows kaadhu access logs telusu kadaa.. entries elaa vuntaayo .. avi oka particular time lo ve kaavali frm a huge one.
Silver_mani Posted July 31, 2014 Report Posted July 31, 2014 can u explain a little please on this timestamp... eg: cat file_name|grep 00:00:00 - 00:10:00 |awk{'print$rownumber'} ani ivvacchaa command? idi work avvadu baa
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 head -100 logfile >> newlogfile correct me if i am wrong.. baa head -100 only top vanda lines ee isthundhi.. tail -xxx gives the last xxx kadaa.. topu, end files kaakunda i just gave an example .. naaku kaavalsina timestamp is not necessarily the starting lines of the log file ani vuddhesam... so how do we deal this ? ani
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 idi work avvadu baa avvunaa.. ok nenu cat abcd.log | grep 01:00:00 vesaaa 10 mins kaavali kadaa till 01:10:00 chesaaaa 10 outputs were little.. local lo oka file lo saved all... it wasnt big...but after that choosthe,... only eding in :00 ve registered baaki seconds of 01-59 for each of those 10 minutes missing... so if i had to get the files in this fashion... cat|grep ni 600 times vaadaaali...am i making sense..which surely will not workout
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 choodddhaam baa elaaa jaragaalo alaa jaruguthundhi.. naa prayathnam nenu chesthune vunna...
KukkaSekharaGajji Posted July 31, 2014 Report Posted July 31, 2014 simplest :grep '2014-07-30 01:0' logFile01:09 varaku vasthaayised -n '/2014-07-30 01:00:00/,/2014-07-20 01:10:00/p' logfile
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 simplest : grep '2014-07-30 01:0' logFile 01:09 varaku vasthaayi sed -n '/2014-07-30 01:00:00/,/2014-07-20 01:10:00/p' logfile 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
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 evvadraaa baabu nuvvu... majjyalo bommeskocchetthaav.. aa bommese badhulu aa command edhoti helping cheskocchu kadaa
Revenge_NageswaraRao Posted July 31, 2014 Report Posted July 31, 2014 evvadraaa baabu nuvvu... majjyalo bommeskocchetthaav.. aa bommese badhulu aa command edhoti helping cheskocchu kadaa telisi untey udayam txt chese vaadini
micxas Posted July 31, 2014 Report Posted July 31, 2014 grep -r "string" filename >> outputfilename.txt try this :4_12_13:
Ruler4Dmasses Posted July 31, 2014 Author Report Posted July 31, 2014 telisi untey udayam txt chese vaadini sare.. chooosthaaa trying
Recommended Posts