10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can you help me to collect the entire logs between two time stamp. The below awk command collecting the logs only if the line has time stamp.
awk '$0>=from && $0<=to' from="150318 23:19:04" to="150318 23:55:04" log file
150318 23:19:04 logentries
150318 23:29:04 logentries
150318... (11 Replies)
Discussion started by: zenkarthi
2. Shell Programming and Scripting
I was looking at this script which outputs the two lines which differs less than one sec.
use constant SEC_MILIC => 1000;
## Open for reading argument file.
open my $fh, "<", $file or die "Cannot... (1 Reply)
Discussion started by: cele_82
3. Shell Programming and Scripting
I have a file like below....
uid=user4 (6 Replies)
Discussion started by: s_linux
4. Shell Programming and Scripting
what I need to do is read 2 rows at time from a file. I have this simple solution:
File to read:
sed '1,3d' /out.txt | while read line; do
echo $line $line2
doneResult:LINE1... (5 Replies)
Discussion started by: Lord Spectre
5. Shell Programming and Scripting
I have a file in following format:
I need a script to compare time on each line with previous line and show the inconsecutive line. Ex.:
A better way... (6 Replies)
Discussion started by: vilibit
6. Shell Programming and Scripting
I am lookig for a way to get all the lines from a log file which has been updated 5 mins prior to the system time.
The log file will be like below:
09:01:00 Started polling
09:01:05 Checking directory test
09:02:00 Error! Cannot access directory test
I get... (8 Replies)
Discussion started by: deepakgang
7. Shell Programming and Scripting
anyone has any ideas on how do we extract lines from a file with format similiar to this: (based on current time)
Jun 18 00:16:50 .......... ............. ............
Jun 18 00:17:59 .......... ............. ............
Jun 18 01:17:20 .......... ............. ............
Jun 18... (5 Replies)
Discussion started by: faelric
8. Shell Programming and Scripting
I want to write a script for the following:
nlscux62:tibprod> grep "2008 Apr 30 01:" SA_EHV_SPEED_SFC_IN_03-SA_EHV_SPEED_SFC_IN_03-2.log | grep -i post | more
2008 Apr 30 01:01:23:928 GMT +2 SAPAdapter.SA_EHV_SPEED_SFC_IN_03-SA_EHV_SPEED_SFC_IN_03-2 Info AER3-000095 IDOC... (2 Replies)
Discussion started by: satyakam
9. Shell Programming and Scripting
I'm trying to accomplish the following and would like some suggestions or possible bash script examples that may work
I have a directory that has a list of log files that's periodically dumped from a script that is crontab that are rotated 4 generations. There will be a time stamp that is... (4 Replies)
Discussion started by: primp
10. UNIX for Dummies Questions & Answers
I am trying to caluate the time elasped by the job to run.For that i have used the following command:
I have one file which contains the following
991 STARTED Fri Aug 10 14:04:20 2007
Starting Job JOB_NAME. (...)
1036 STARTED Fri Aug 10 14:04:31 2007
... (1 Reply)
Discussion started by: Amey Joshi