Jump to content

Recommended Posts

Posted

edited.. please help appreciated.

a big log file ...you need to capture rows between two timestamps ?? wew-o.gif?1374486107

  • 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

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?

Posted

a big log file ...you need to capture rows between two timestamps ?? wew-o.gif?1374486107

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.

Posted

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

Posted

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 

Posted

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  

Posted

choodddhaam baa elaaa jaragaalo alaa jaruguthundhi.. naa prayathnam nenu chesthune vunna... 

Posted

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

Posted

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

Posted

idk+I+don+t+have+a+lot+of+creepy+gifs+_5

evvadraaa baabu nuvvu... majjyalo bommeskocchetthaav.. aa bommese badhulu aa command edhoti helping cheskocchu kadaa

Posted

evvadraaa baabu nuvvu... majjyalo bommeskocchetthaav.. aa bommese badhulu aa command edhoti helping cheskocchu kadaa

telisi untey udayam txt chese vaadini

Posted

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

 

try this  :4_12_13:

Posted

telisi untey udayam txt chese vaadini

sare.. chooosthaaa trying

×
×
  • Create New...