Sponsored Content
Top Forums Shell Programming and Scripting Find line containing string in a file. Post 302472393 by michaelrozar17 on Wednesday 17th of November 2010 05:03:05 AM
Old 11-17-2010
@Scrutinizer

hmm... yes. you are right. Thank you Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find the string in a line

Hello I have a abc.txt file which semicolon delimited. I need to read the first line of the abc.txt file where i need to extract specific string which at specific location. i.e first line of the abc.txt file is as below abc;123;xyz;345;678 my requirement is i need to get the 678. I was... (7 Replies)
Discussion started by: dsdev_123
7 Replies

2. Programming

Find a line containing a string.

Hello. I have a large file that contains a lot of gibberish and also a lot of http addresses. How can i read the file, take out the http addresses, and write each one of them on one line each into another file? It looks something like this. ... (1 Reply)
Discussion started by: cbreiny
1 Replies

3. Shell Programming and Scripting

replace (sed?) a single line/string in file with multiple lines (string) from another file??

Can someone tell me how I can do this? e.g: Say file1.txt contains: today is monday the 22 of NOVEMBER 2010 and file2.txt contains: the 11th month of How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
5 Replies

4. Shell Programming and Scripting

find string nth occurrence in file and print line number

Hi I have requirement to find nth occurrence in a file and capture data from with in lines (between lines) Data in File. <QUOTE> <SESSION> <ATTRIBUTE NAME='Parameter Filename' VALUE='file1.parm'/> <ATTRIBUTE NAME='Service Name' VALUE='None'/> </SESSION> <SESSION> <ATTRIBUTE... (6 Replies)
Discussion started by: tmalik79
6 Replies

5. Shell Programming and Scripting

Find a line using a condition and replace a string in that line

Hello, I have a 100 line code. I have given a sample of it below: ABC*654654*1*54.54*21.2*87*1*654654654654 CCC*FS*FS*SFD*DSF GGG*FGH*CGB*FBDFG*FGDG ABC*654654*1*57.84*45.4*88*2*6546546545 CCC*WSF*SG*FGH*GHJ ADA*AF*SFG*DFGH*FGH*FGTH I need to select the line starting with "ABC" its... (6 Replies)
Discussion started by: nithins007
6 Replies

6. Emergency UNIX and Linux Support

Find a line using a condition and replace a string in that line

Hello, I have a 100 line code. I have given a sample of it below: ABC*654654*1*54.54*21.2*87*1*654654654654 CCC*FS*FS*SFD*DSF GGG*FGH*CGB*FBDFG*FGDG ABC*654654*1*57.84*45.4*88*2*6546546545 CCC*WSF*SG*FGH*GHJ ADA*AF*SFG*DFGH*FGH*FGTH I need to select the line starting with "ABC" its... (3 Replies)
Discussion started by: nithins007
3 Replies

7. UNIX for Dummies Questions & Answers

find string and get the rest of the line in a pipe delimited file

Hi friends, I have a file where I should search for a string and get the rest of the line but without the delimiter using awk. for example I have the series of string in a file: input_string.txt bbb ccc aaa and the mapping file looks like this. mapping.txt aaa|12 bbb|23 ccc|43... (11 Replies)
Discussion started by: kokoro
11 Replies

8. UNIX for Advanced & Expert Users

How to find a string in a line in UNIX file and delete that line and previous 3 lines ?

Hi , i have a file with data as below.This is same file. But actual file contains to many rows. i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ? Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies

9. Shell Programming and Scripting

Find string in file and find the all records by string

Hello I would like to get know how to do this: I got a big file (about 1GB) and I need to find a string (for instance by grep ) and then find all records in this file based on a string. Thanks for advice. Martin (12 Replies)
Discussion started by: mape
12 Replies

10. Shell Programming and Scripting

Find a string and its position in a line from another string

Hello guys, would you please help me with this? this is the line inside a file: first line Something Today YYDDPPSVXIPYYY0XXXOFFS00000000000? I'd like to find the position of string XXX from string PYYY In the example above XXX starts from 6th position from PYYY desired... (4 Replies)
Discussion started by: netrom
4 Replies
DateTime::Locale::bg(3) 				User Contributed Perl Documentation				   DateTime::Locale::bg(3)

NAME
DateTime::Locale::bg SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'bg' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Bulgarian. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXXXXXXXXX XXXXXXX XXXXX XXXXXXXXX XXXXX XXXXXX XXXXXX Abbreviated (format) XX XX XX XX XX XX XX Narrow (format) X X X X X X X Wide (stand-alone) XXXXXXXXXX XXXXXXX XXXXX XXXXXXXXX XXXXX XXXXXX XXXXXX Abbreviated (stand-alone) XX XX XX XX XX XX XX Narrow (stand-alone) X X X X X X X Months Wide (format) XXXXXX XXXXXXXX XXXX XXXXX XXX XXX XXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (format) XX. XXXX. XXXX XXX. XXX XXX XXX XXX. XXXX. XXX. XXXX. XXX. Narrow (format) X X X X X X X X X X X X Wide (stand-alone) XXXXXX XXXXXXXX XXXX XXXXX XXX XXX XXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (stand-alone) XX. XXXX. XXXX XXX. XXX XXX XXX XXX. XXXX. XXX. XXXX. XXX. Narrow (stand-alone) X X X X X X X X X X X X Quarters Wide (format) 1-XX XXXXXXXXXX 2-XX XXXXXXXXXX 3-XX XXXXXXXXXX 4-XX XXXXXXXXXX Abbreviated (format) I XXXX. II XXXX. III XXXX. IV XXXX. Narrow (format) 1 2 3 4 Wide (stand-alone) 1-XX XXXXXXXXXX 2-XX XXXXXXXXXX 3-XX XXXXXXXXXX 4-XX XXXXXXXXXX Abbreviated (stand-alone) I XXXX. II XXXX. III XXXX. IV XXXX. Narrow (stand-alone) 1 2 3 4 Eras Wide XX.XX. XX.XX. Abbreviated XX. X. X. XX X. X. Narrow XX. X. X. XX X. X. Date Formats Full 2008-02-05T18:30:30 = 05 XXXXXXXX 2008, XXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX 1995, XXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXX -10, XXXXXX Long 2008-02-05T18:30:30 = 05 XXXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 Medium 2008-02-05T18:30:30 = 05.02.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.09.-010 Short 2008-02-05T18:30:30 = 05.02.08 1995-12-22T09:05:02 = 22.12.95 -0010-09-15T04:44:23 = 15.09.-10 Default 2008-02-05T18:30:30 = 05.02.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.09.-010 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = 05 XXXXXXXX 2008, XXXXXXX 18:30:30 UTC 1995-12-22T09:05:02 = 22 XXXXXXXX 1995, XXXXX 09:05:02 UTC -0010-09-15T04:44:23 = 15 XXXXXXXXX -10, XXXXXX 04:44:23 UTC Long 2008-02-05T18:30:30 = 05 XXXXXXXX 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 05.02.2008 18:30:30 1995-12-22T09:05:02 = 22.12.1995 09:05:02 -0010-09-15T04:44:23 = 15.09.-010 04:44:23 Short 2008-02-05T18:30:30 = 05.02.08 18:30 1995-12-22T09:05:02 = 22.12.95 09:05 -0010-09-15T04:44:23 = 15.09.-10 04:44 Default 2008-02-05T18:30:30 = 05.02.2008 18:30:30 1995-12-22T09:05:02 = 22.12.1995 09:05:02 -0010-09-15T04:44:23 = 15.09.-010 04: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 (E d) 2008-02-05T18:30:30 = XX 5 1995-12-22T09:05:02 = XX 22 -0010-09-15T04:44:23 = XX 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XX 1995-12-22T09:05:02 = 22 XX -0010-09-15T04:44:23 = 15 XX H (H) 2008-02-05T18:30:30 = 18 1995-12-22T09:05:02 = 9 -0010-09-15T04:44:23 = 4 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. XX. 1995-12-22T09:05:02 = 9:05 XX. XX. -0010-09-15T04:44:23 = 4:44 XX. XX. hmm (h:mm a) 2008-02-05T18:30:30 = 6:30 XX. XX. 1995-12-22T09:05:02 = 9:05 XX. XX. -0010-09-15T04:44:23 = 4:44 XX. XX. hmmss (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 XX. XX. 1995-12-22T09:05:02 = 9:05:02 XX. XX. -0010-09-15T04:44:23 = 4:44:23 XX. XX. Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 XX. XX. 1995-12-22T09:05:02 = 9:05:02 XX. XX. -0010-09-15T04:44:23 = 4:44:23 XX. 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 (E, M-d) 2008-02-05T18:30:30 = XX, 2-5 1995-12-22T09:05:02 = XX, 12-22 -0010-09-15T04:44:23 = XX, 9-15 MMdd (dd.MM) 2008-02-05T18:30:30 = 05.02 1995-12-22T09:05:02 = 22.12 -0010-09-15T04:44:23 = 15.09 MMM (LLL) 2008-02-05T18:30:30 = XXXX. 1995-12-22T09:05:02 = XXX. -0010-09-15T04:44:23 = XXXX. MMMd (MMM d) 2008-02-05T18:30:30 = XXXX. 5 1995-12-22T09:05:02 = XXX. 22 -0010-09-15T04:44:23 = XXXX. 15 MMMEd (d MMM, E) 2008-02-05T18:30:30 = 5 XXXX., XX 1995-12-22T09:05:02 = 22 XXX., XX -0010-09-15T04:44:23 = 15 XXXX., XX MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXX MMMMdd (dd MMMM) 2008-02-05T18:30:30 = 05 XXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXX MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XX XXXXXXXX 5 1995-12-22T09:05:02 = XX XXXXXXXX 22 -0010-09-15T04:44:23 = XX XXXXXXXXX 15 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 (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = XX, 2008-2-5 1995-12-22T09:05:02 = XX, 1995-12-22 -0010-09-15T04:44:23 = XX, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 XXXX. 1995-12-22T09:05:02 = 1995 XXX. -0010-09-15T04:44:23 = -10 XXXX. yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = XX, 2008 XXXX. 5 1995-12-22T09:05:02 = XX, 1995 XXX. 22 -0010-09-15T04:44:23 = XX, -10 XXXX. 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXXXXX 1995-12-22T09:05:02 = 1995 XXXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXXX yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 I XXXX. 1995-12-22T09:05:02 = 1995 IV XXXX. -0010-09-15T04:44:23 = -10 III XXXX. yyMM (MM.yy) 2008-02-05T18:30:30 = 02.08 1995-12-22T09:05:02 = 12.95 -0010-09-15T04:44:23 = 09.-10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyy (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yyyyMM (MM.yyyy) 2008-02-05T18:30:30 = 02.2008 1995-12-22T09:05:02 = 12.1995 -0010-09-15T04:44:23 = 09.-010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXX -10 yyyyQQQQ (QQQQ y 'X'.) 2008-02-05T18:30:30 = 1-XX XXXXXXXXXX 2008 X. 1995-12-22T09:05:02 = 4-XX XXXXXXXXXX 1995 X. -0010-09-15T04:44:23 = 3-XX XXXXXXXXXX -10 X. Miscellaneous Prefers 24 hour time? Yes Local first day of the week XXXXXXXXXX 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::bg(3)
All times are GMT -4. The time now is 05:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy