Sponsored Content
Top Forums Shell Programming and Scripting sed / awk / grep to extract information from log Post 303005173 by Scott on Saturday 14th of October 2017 02:48:30 PM
Old 10-14-2017
Code:
$ grep -o "LoadId([^)]*)" file
LoadId(5137-1-0-1XX-15343-15343)

Or with sed
Code:
$ sed -n "/LoadId/{s/.*\(LoadId([^)]*)\).*/\1/;p;}" file
LoadId(5137-1-0-1XX-15343-15343)

This User Gave Thanks to Scott For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

AWK to extract information

Hi all, I am working on a shell script to extract information from a file that has output from Oracle sqlplus. The problem is that the output of a single line is spread across multiple lines and i do not know as how to extract the particular filed at ones,which spans multiple lines.... (2 Replies)
Discussion started by: harris2107
2 Replies

2. UNIX for Advanced & Expert Users

WEB Server Log File Analysis using awk/sed/grep

I'm trying to find a way to show large page sizes (page size in K) from multiple web server log files. Essentially I want to show only rows from a file where a specific column is larger than some value. Has anyone ever done this type of log analysis? If so, a snippet of code would be very... (2 Replies)
Discussion started by: mike_cataldo@ad
2 Replies

3. UNIX for Advanced & Expert Users

bash/grep/awk/sed: How to extract every appearance of text between two specific strings

I have a text wich looks like this: clid=2 cid=6 client_database_id=35 client_nickname=Peter client_type=0|clid=3 cid=22 client_database_id=57 client_nickname=Paul client_type=0|clid=5 cid=22 client_database_id=7 client_nickname=Mary client_type=0|clid=6 cid=22 client_database_id=6... (3 Replies)
Discussion started by: Pioneer1976
3 Replies

4. Shell Programming and Scripting

Extract information from Log file formatted

Good evening! Trying to make a shell script to parse log file and show only required information. log file has 44 fields and alot of lines, each columns separated by ":". log file is like: first_1:3:4:5:6:1:3:4:5:something:notinterested second_2:3:4:3:4:2 first_1:3:4:6:6:7:8 I am interested... (3 Replies)
Discussion started by: dummie55
3 Replies

5. Shell Programming and Scripting

Use grep sed or awk to extract string from log file and put into CSV

I'd like to copy strings from a log file and put them into a CSV. The strings could be on different line numbers, depending on size of log. Example Log File: File = foo.bat Date = 11/11/11 User = Foo Bar Size = 1024 ... CSV should look like: "foo.bat","11/11/11","Foo Bar","1024" (7 Replies)
Discussion started by: chipperuga
7 Replies

6. Shell Programming and Scripting

Router ping log extract data from it Awk/Sed/grep

Hi, I am new to this world.. Using expect i loging to router and checking ping response to my links. I need to genarate report using this output and that report contains only three file link name, packet loss, latency. my output of script is like below: -bash-3.00$ monmw/mwbkp... (2 Replies)
Discussion started by: jkmistry
2 Replies

7. Shell Programming and Scripting

extract information from a log file (last days)

I'm still new to bash script , I have a log file and I want to extract the items within the last 5 days . and also within the last 10 hours the log file is like this : it has 14000 items started from march 2002 to january 2003 awk '{print $4}' < *.log |uniq -c|sort -g|tail -10 but... (14 Replies)
Discussion started by: matarsak
14 Replies

8. Shell Programming and Scripting

Extract various information from a log file

Hye ShamRock If you can help me with this difficult task for me then it will save my day Logs : ================================================================================================================== ... (4 Replies)
Discussion started by: SilvesterJ
4 Replies

9. Shell Programming and Scripting

Include information in certain columns using grep and awk

HI all, I have data in a file that looks like this: 1 HOW _ NNP NNP _ 3 nn _ _ 2 DRUGS _ NNP NNP _ 3 nn _ _ 3 ACT _ NNP NNP _ 0 null _ _ 4 : _ ... (3 Replies)
Discussion started by: owwow14
3 Replies

10. UNIX for Beginners Questions & Answers

awk script to extract transcript information from gff3 file

I need help to extract transcript information from gff3 file. Here is the input Chr01 JGI gene 82773 86941 . - . ID=Potri.001G000900;Name=Potri.001G000900 Chr01 JGI mRNA 82793 86530 . - . ID=PAC:27047814;Name=Potri.001G000900.1;pacid=27047814;longest=1;Parent=Potri.001G000900... (6 Replies)
Discussion started by: Maduranga
6 Replies
DateTime::Locale::ko(3) 				User Contributed Perl Documentation				   DateTime::Locale::ko(3)

NAME
DateTime::Locale::ko SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'ko' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Korean. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXX XXX XXX XXX XXX XXX XXX Abbreviated (format) X X X X X X X Narrow (format) X X X X X X X Wide (stand-alone) XXX XXX XXX XXX XXX XXX XXX Abbreviated (stand-alone) X X X X X X X Narrow (stand-alone) X X X X X X X Months Wide (format) 1X 2X 3X 4X 5X 6X 7X 8X 9X 10X 11X 12X Abbreviated (format) 1X 2X 3X 4X 5X 6X 7X 8X 9X 10X 11X 12X Narrow (format) 1X 2X 3X 4X 5X 6X 7X 8X 9X 10X 11X 12X Wide (stand-alone) 1X 2X 3X 4X 5X 6X 7X 8X 9X 10X 11X 12X Abbreviated (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Narrow (stand-alone) 1X 2X 3X 4X 5X 6X 7X 8X 9X 10X 11X 12X Quarters Wide (format) X 1/4XX X 2/4XX X 3/4XX X 4/4XX Abbreviated (format) 1XX 2XX 3XX 4XX Narrow (format) 1 2 3 4 Wide (stand-alone) X 1/4XX X 2/4XX X 3/4XX X 4/4XX Abbreviated (stand-alone) 1XX 2XX 3XX 4XX Narrow (stand-alone) 1 2 3 4 Eras Wide XXXXX XXXX Abbreviated XXX XX Narrow XXX XX Date Formats Full 2008-02-05T18:30:30 = 2008X 2X 5X XXX 1995-12-22T09:05:02 = 1995X 12X 22X XXX -0010-09-15T04:44:23 = -10X 9X 15X XXX Long 2008-02-05T18:30:30 = 2008X 2X 5X 1995-12-22T09:05:02 = 1995X 12X 22X -0010-09-15T04:44:23 = -10X 9X 15X Medium 2008-02-05T18:30:30 = 2008. 2. 5. 1995-12-22T09:05:02 = 1995. 12. 22. -0010-09-15T04:44:23 = -010. 9. 15. Short 2008-02-05T18:30:30 = 08. 2. 5. 1995-12-22T09:05:02 = 95. 12. 22. -0010-09-15T04:44:23 = -10. 9. 15. Default 2008-02-05T18:30:30 = 2008. 2. 5. 1995-12-22T09:05:02 = 1995. 12. 22. -0010-09-15T04:44:23 = -010. 9. 15. Time Formats Full 2008-02-05T18:30:30 = XX 06X 30X 30X UTC 1995-12-22T09:05:02 = XX 09X 05X 02X UTC -0010-09-15T04:44:23 = XX 04X 44X 23X UTC Long 2008-02-05T18:30:30 = XX 06X 30X 30X UTC 1995-12-22T09:05:02 = XX 09X 05X 02X UTC -0010-09-15T04:44:23 = XX 04X 44X 23X UTC Medium 2008-02-05T18:30:30 = XX 6:30:30 1995-12-22T09:05:02 = XX 9:05:02 -0010-09-15T04:44:23 = XX 4:44:23 Short 2008-02-05T18:30:30 = XX 6:30 1995-12-22T09:05:02 = XX 9:05 -0010-09-15T04:44:23 = XX 4:44 Default 2008-02-05T18:30:30 = XX 6:30:30 1995-12-22T09:05:02 = XX 9:05:02 -0010-09-15T04:44:23 = XX 4:44:23 Datetime Formats Full 2008-02-05T18:30:30 = 2008X 2X 5X XXXXX 06X 30X 30X UTC 1995-12-22T09:05:02 = 1995X 12X 22X XXXXX 09X 05X 02X UTC -0010-09-15T04:44:23 = -10X 9X 15X XXXXX 04X 44X 23X UTC Long 2008-02-05T18:30:30 = 2008X 2X 5XXX 06X 30X 30X UTC 1995-12-22T09:05:02 = 1995X 12X 22XXX 09X 05X 02X UTC -0010-09-15T04:44:23 = -10X 9X 15XXX 04X 44X 23X UTC Medium 2008-02-05T18:30:30 = 2008. 2. 5.XX 6:30:30 1995-12-22T09:05:02 = 1995. 12. 22.XX 9:05:02 -0010-09-15T04:44:23 = -010. 9. 15.XX 4:44:23 Short 2008-02-05T18:30:30 = 08. 2. 5.XX 6:30 1995-12-22T09:05:02 = 95. 12. 22.XX 9:05 -0010-09-15T04:44:23 = -10. 9. 15.XX 4:44 Default 2008-02-05T18:30:30 = 2008. 2. 5.XX 6:30:30 1995-12-22T09:05:02 = 1995. 12. 22.XX 9:05:02 -0010-09-15T04:44:23 = -010. 9. 15.XX 4:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 Ed (dX (E)) 2008-02-05T18:30:30 = 5X (X) 1995-12-22T09:05:02 = 22X (X) -0010-09-15T04:44:23 = 15X (X) EEEd (dX EEE) 2008-02-05T18:30:30 = 5X X 1995-12-22T09:05:02 = 22X X -0010-09-15T04:44:23 = 15X X HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 XX 1995-12-22T09:05:02 = 9:05 XX -0010-09-15T04:44:23 = 4:44 XX Hms (HX mX sX) 2008-02-05T18:30:30 = 18X 30X 30X 1995-12-22T09:05:02 = 9X 5X 2X -0010-09-15T04:44:23 = 4X 44X 23X hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 XX 1995-12-22T09:05:02 = 9:05:02 XX -0010-09-15T04:44:23 = 4:44:23 XX M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M. d.) 2008-02-05T18:30:30 = 2. 5. 1995-12-22T09:05:02 = 12. 22. -0010-09-15T04:44:23 = 9. 15. MEd (M. d. (E)) 2008-02-05T18:30:30 = 2. 5. (X) 1995-12-22T09:05:02 = 12. 22. (X) -0010-09-15T04:44:23 = 9. 15. (X) MMdd (MM. dd) 2008-02-05T18:30:30 = 02. 05 1995-12-22T09:05:02 = 12. 22 -0010-09-15T04:44:23 = 09. 15 MMM (LLL) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 MMMd (MMM dX) 2008-02-05T18:30:30 = 2X 5X 1995-12-22T09:05:02 = 12X 22X -0010-09-15T04:44:23 = 9X 15X MMMEd (MMM dX (E)) 2008-02-05T18:30:30 = 2X 5X (X) 1995-12-22T09:05:02 = 12X 22X (X) -0010-09-15T04:44:23 = 9X 15X (X) MMMMd (MMMM dX) 2008-02-05T18:30:30 = 2X 5X 1995-12-22T09:05:02 = 12X 22X -0010-09-15T04:44:23 = 9X 15X MMMMEd (MMMM dX (E)) 2008-02-05T18:30:30 = 2X 5X (X) 1995-12-22T09:05:02 = 12X 22X (X) -0010-09-15T04:44:23 = 9X 15X (X) mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (yyyy. M.) 2008-02-05T18:30:30 = 2008. 2. 1995-12-22T09:05:02 = 1995. 12. -0010-09-15T04:44:23 = -010. 9. yMEd (yyyy. M. d. EEE) 2008-02-05T18:30:30 = 2008. 2. 5. X 1995-12-22T09:05:02 = 1995. 12. 22. X -0010-09-15T04:44:23 = -010. 9. 15. X yMMM (yX MMM) 2008-02-05T18:30:30 = 2008X 2X 1995-12-22T09:05:02 = 1995X 12X -0010-09-15T04:44:23 = -10X 9X yMMMd (yX MMM dX) 2008-02-05T18:30:30 = 2008X 2X 5X 1995-12-22T09:05:02 = 1995X 12X 22X -0010-09-15T04:44:23 = -10X 9X 15X yMMMEd (yX MMM dX EEE) 2008-02-05T18:30:30 = 2008X 2X 5X X 1995-12-22T09:05:02 = 1995X 12X 22X X -0010-09-15T04:44:23 = -10X 9X 15X X yMMMM (yX MMMM) 2008-02-05T18:30:30 = 2008X 2X 1995-12-22T09:05:02 = 1995X 12X -0010-09-15T04:44:23 = -10X 9X yQ (yX QXX) 2008-02-05T18:30:30 = 2008X 1XX 1995-12-22T09:05:02 = 1995X 4XX -0010-09-15T04:44:23 = -10X 3XX yQQQ (yX QQQ) 2008-02-05T18:30:30 = 2008X 1XX 1995-12-22T09:05:02 = 1995X 4XX -0010-09-15T04:44:23 = -10X 3XX yyMM (YY. M.) 2008-02-05T18:30:30 = 2008. 2. 1995-12-22T09:05:02 = 1995. 12. -0010-09-15T04:44:23 = -10. 9. yyMMM (yyX MMM) 2008-02-05T18:30:30 = 08X 2X 1995-12-22T09:05:02 = 95X 12X -0010-09-15T04:44:23 = -10X 9X yyQ (yyX QXX) 2008-02-05T18:30:30 = 08X 1XX 1995-12-22T09:05:02 = 95X 4XX -0010-09-15T04:44:23 = -10X 3XX yyyyMM (yyyy. MM) 2008-02-05T18:30:30 = 2008. 02 1995-12-22T09:05:02 = 1995. 12 -0010-09-15T04:44:23 = -010. 09 Miscellaneous Prefers 24 hour time? No Local first day of the week XXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::ko(3)
All times are GMT -4. The time now is 08:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy