Visit Our UNIX and Linux User Community

Top Forums Shell Programming and Scripting Get all lines in a file after particular time Post 302348451 by thanhdat on Friday 28th of August 2009 09:27:31 AM
Old 08-28-2009
Take a look at this post : https://www.unix.com/shell-programmin...iable-sed.html

Hope that helps.
 
Test Your Knowledge in Computers #102
Difficulty: Easy
Unix, Linux and other Unix-like operating systems are a family of computer operating systems that are derived from DOS.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To find the time difference between two lines of the same log file

Hello Friends, 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
2 Replies

2. Shell Programming and Scripting

Pattern matching in file and then display 10 lines above every time

hiii, i have to write a shell script like this---- i have a huge log file name abc.log .i have to search for a pattern name "pattern",it may occur 1000 times in the log file,every time it finds the pattern it should display the 10 lines above the pattern. I appericiate your help. (30 Replies)
Discussion started by: namishtiwari
30 Replies

3. Shell Programming and Scripting

time diffrence between two lines in a log file

Hi Experts, I am writing a shell/Perl script tp get a time diffrence of two lines in a log file. I am pasting a snippet of my log file, how it look likes. Sun Apr 26 02:11:03.162 2009 Greenwich Standard Time LOW: pid 488 tid 2072: 0: 251360: calling ARRF_LIB_Evaluate. Sun Apr 26... (24 Replies)
Discussion started by: namishtiwari
24 Replies

4. Shell Programming and Scripting

Extracting lines in file based on time

Hi, 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
5 Replies

5. Shell Programming and Scripting

Need to parse file "x" lines at a time ... awk array?

I have files that store multiple data points for the same device "vertically" and include multiple devices. It repeats a consistant pattern of lines where for each line: Column 1 is a common number for the entire file and all devices in that file Column 2 is a unique device number Column 3 is... (7 Replies)
Discussion started by: STN
7 Replies

6. Shell Programming and Scripting

Searching the lines within a range of time period in a text file

Dear All, Please advice me, I have a text file with one field date and time like below given. I need to find out the lines whchi content the time stamp between Wed May 26 11:03:11 2010 and Wed May 26 11:03:52 2010 both can be included, using awk command which could be an interactive so that I... (6 Replies)
Discussion started by: chinmayadalai
6 Replies

7. Shell Programming and Scripting

Find time difference between two consecutive lines in same file.

Hello I have a file in following format: IV 08:09:07 NM 08:12:01 IC 08:12:00 MN 08:14:20 NM 08:14:15 I need a script to compare time on each line with previous line and show the inconsecutive line. Ex.: 08:12:00 08:14:15 A better way... (6 Replies)
Discussion started by: vilibit
6 Replies

8. Shell Programming and Scripting

Read two lines at time from a file

Hello community, what I need to do is read 2 rows at time from a file. I have this simple solution: File to read: LINE1 LINE2 LINE3 LINE4 LINE5 LINE6 LINE7 LINE8Read routine:#!/bin/ksh sed '1,3d' /out.txt | while read line; do read line2 echo $line $line2 doneResult:LINE1... (5 Replies)
Discussion started by: Lord Spectre
5 Replies

9. Shell Programming and Scripting

Read multiple lines at a time from file

Hello All, I have a file like below.... dn: cn=user1,ou=org,o=org cn=user1 uid=user1 cn=user2,ou=org,o=org cn=user2 uid=user2 cn=user3,ou=org,o=org cn=user3 cn=user33 uid=user3 cn=user4,ou=org,o=org cn=user4 uid=user4 (6 Replies)
Discussion started by: s_linux
6 Replies

10. Shell Programming and Scripting

Check/Parse log file's lines using time difference/timestamp

I was looking at this script which outputs the two lines which differs less than one sec. #!/usr/bin/perl -w use strict; use warnings; use Time::Local; use constant SEC_MILIC => 1000; my $file='infile'; ## Open for reading argument file. open my $fh, "<", $file or die "Cannot... (1 Reply)
Discussion started by: cele_82
1 Replies
SPKI(5) 							    Lsh Manuals 							   SPKI(5)

NAME
SPKI - Simple Public Key Infrastructure formats DESCRIPTION
The IETF Simple Public Key Infrastructure Working Group has defined a format for storing, transmitting and manipulating certificates to support security in a wide range of Internet applications which will require the use of public key certificates. For the definition of the SPKI format, please refer to [SPKI]. The format of SPKI objects is a simplified form of S-expression. An S-expression is a list enclosed in matching "(" and ")", similar to the recursive list data structure in of the LISP and Scheme programming languages. Canonical S-expression A canonical S-expression is a unique representation of an S-expression which may contain arbitrary binary byte strings. For transport over a 7-bit channel, it may be base64 (see [RFC2045]) encoded. Advanced S-expression The advanced S-expression format is a complexer form of an S-expression which is not necessarily unique. It is more suited for human read- ing than the canonical S-expression format. EXAMPLE
Examples SPKI certificates can be found in [SPKI]. REFERENCES
<URL:http://www.clark.net/pub/cme/html/spki.html> Home-page of the IETF SPKI working group. <URL:http://theory.lcs.mit.edu/~rivest/sexp.html> Home-page of the S-expression technology. Carl M. Ellison, SPKI Requirements, Internet draft, <URL:http://www.ietf.org/internet-drafts/internet-drafts/draft-ietf-spki-cert-req-02.txt>, 24 October 1998. [SPKI] Carl M. Ellison, Bill Frantz, Butler Lampson, Ron Rivest, Brian M. Thomas and Tatu Ylonen, Simple Public Key Certificate, Internet draft (expired), <URL:http://www.ietf.org/internet-drafts/internet-drafts/draft-ietf-spki-cert-structure-05.txt>, 13 March 1998. Carl M. Ellison, Bill Frantz, Butler Lampson, Ron Rivest, Brian M. Thomas and Tatu Ylonen, SPKI Certificate Theory, Internet draft, <URL:http://www.ietf.org/internet-drafts/internet-drafts/draft-ietf-spki-cert-theory-04.txt>, 17 November 1998. Carl M. Ellison, Bill Frantz, Butler Lampson, Ron Rivest, Brian M. Thomas and Tatu Ylonen, SPKI Examples, Internet draft (expired), <URL:http://www.ietf.org/internet-drafts/draft-ietf-spki-cert-examples-01.txt>, 10 March 1998. [RFC2045] N. Freed and N. Borenstein, Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies, 2 December 1996. AUTHOR
This man-page was written by J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>. SEE ALSO
lsh_keygen(1) LSH
JANUARY 1999 SPKI(5)

Featured Tech Videos

All times are GMT -4. The time now is 11:27 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy