Jump to content

Help - Linux/unix Experts Ki Okka Question.


Recommended Posts

Posted

Oka folder lo log files unnai, so many log files

 

1) i need a command to display files between time frame, example 

 

     march 28 between 11:00 pm and 11:40 pm

 

2) display aina bunch of files ni vere  folder lo copy cheyali at a time, possible a? 

 

Posted

Oka folder lo log files unnai, so many log files

 

1) i need a command to display files between time frame, example 

 

     march 28 between 11:00 pm and 11:40 pm

 

2) display aina bunch of files ni vere  folder lo copy cheyali at a time, possible a? 

 Actual ga awk command  use chesi, cheyochu man, nenu monne try chesa work out kale naku, kani after grepping u canb redirect to another file by >> log. txt.

 

Wait for experts advice.

 

FYI: http://www.coderanch.com/t/527847/Linux-UNIX/Log-Time

Posted

If ur logs have the date in the filename then it is different case

declare the times u need as variable. cut the file names to get the time and compare those 2 to get ur date value files and send them to another folder.

 

If ur logs don't have date in file name and u need files based on when they created, then see the below link

 

http://www.unix.com/unix-dummies-questions-answers/14722-files-between-any-two-given-dates.html?s=

 

Posted

file name lo date unte grep chesi  output ni oka txt file loki pampu.....tharvath for i in x.txt....cp file1 <folder>

×
×
  • Create New...