Sponsored Content
Top Forums Shell Programming and Scripting Extract string between two delimiter Post 302843401 by Jotne on Tuesday 13th of August 2013 05:24:38 AM
Old 08-13-2013
Changing RudiCs code we can do this regarding () is changed to ""
Code:
cat file
2007_08_07_IA-0100-014_"January".PDF
2007_08_07_IA-0100-031_"January February March
April June July".PDF
2008-02-28_KR-1022-003_"January
febuary
march april
may".CSV


Code:
awk -F\" '{while ($0!~/\./) {getline x;$0=$0" "x}} {print $2}'
January
January February March April June July
January febuary march april may


Last edited by Jotne; 08-13-2013 at 06:31 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creating a delimiter string

hi i have a function printValues() { var=$# count=0 qName="" while do if then echo QManager Name $1 fi if then echo Cluster Name$2 fi if (( $count != 0 && $count != 1 )) then ... (0 Replies)
Discussion started by: satish@123
0 Replies

2. UNIX for Dummies Questions & Answers

extract fields from text file using delimiter!!

Hi All, I am new to unix scripting, please help me in solving this assignment.. I have a scenario, as follows: 1. i have a text file(read1.txt) with the following data sairam,123 kamal,122 etc.. 2. I have to write a unix... (6 Replies)
Discussion started by: G.K.K
6 Replies

3. Shell Programming and Scripting

Delimiter count in a string.

Hi , I need to get the delimiter "-" count in a particular string. string= SYS_NAME-123-S5-2008-10-20.LOG the delimit "-" count is 5 . Using sed or awk can I know the count ? I have seen how to get the count for delimiter in a file but not a string :( Thanks, Priya (8 Replies)
Discussion started by: priyam
8 Replies

4. Shell Programming and Scripting

extract string from varying delimiter line

Hi I have lines like this a=1, b=2, c=3, a=1, d=4, e=5, b=225, I need to extract the b=nnn... value. I dont know how many other entries will be before and after it in each line. Ive tried a basic line like awk '/b=/, $NF ~ /,/ ' myfile.txt but I think that it doesnt care which comma it... (5 Replies)
Discussion started by: rebelbuttmunch
5 Replies

5. Shell Programming and Scripting

Extract 2 or more int from the text with delimiter.

Hi All, I want to extract the integers from the each line, each line may have 2 or more integers. The following command is appending each integers. echo "Hi I am 100, my friend is 500, his friend is 423" | sed "s///g" 100500423 I need to have delimiter "|" between the integers. If anyone... (18 Replies)
Discussion started by: sarwan
18 Replies

6. Shell Programming and Scripting

Extract semicolon separated delimiter

The log reads as follows. fname1;lname1;eid1;addr;pincode1; fname2;lname2;eid2;addr2;pincode2; fname3;lname3;eid3;addr3;pincode3; fname4;lname4;eid;addr4;pincode4; how do i extract only fname and save it in an array similarly for lname and so on i tried reading a file and cutting each... (5 Replies)
Discussion started by: vkca
5 Replies

7. Shell Programming and Scripting

How to split a string with no delimiter

Hi; I want to write a shell script that will split a string with no delimiter. Basically the script will read a line from a file. For example the line it read from the file contains: 99234523 These values are never the same but the length will always be 8. How do i split this... (8 Replies)
Discussion started by: saint34
8 Replies

8. Shell Programming and Scripting

how to cut all string after the last delimiter?

hi all, suppose a string: abc/def/ghi/jkl/mn.txt and i want to get the file name without the path. however, different files have different paths, therefore the number of delimiter is uncertain. thanks so much! (3 Replies)
Discussion started by: sunnydanniel
3 Replies

9. Shell Programming and Scripting

Skip the delimiter with in double quotes and count the number of delimiters during data extract

Hi All, I'm stuck-up in finding a way to skip the delimiter which come within double quotes using awk or any other better option. can someone please help me out. Below are the details: Delimited: | Sample data: 742433154|"SYN|THESIS MED CHEM PTY.... (2 Replies)
Discussion started by: BrahmaNaiduA
2 Replies

10. Shell Programming and Scripting

Extract multiple columns base on double quotes as delimiter

Hi All, I have my data like below "1","abc,db","hac,aron","4","5" Now I need to extract 1,2,4th columns Output should be like "1",abc,db","4" Am trying to use cut command but not able to get the results. Thanks in advance. (4 Replies)
Discussion started by: weknowd
4 Replies
DateTime::Locale::sid_ET(3)				User Contributed Perl Documentation			       DateTime::Locale::sid_ET(3)

NAME
DateTime::Locale::sid_ET SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'sid_ET' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Sidamo Ethiopia. DATA
This locale inherits from the DateTime::Locale::sid locale. It contains the following data. Days Wide (format) Sanyo Maakisanyo Roowe Hamuse Arbe Qidaame Sambata Abbreviated (format) San Mak Row Ham Arb Qid Sam Narrow (format) S M R H A Q S Wide (stand-alone) Sanyo Maakisanyo Roowe Hamuse Arbe Qidaame Sambata Abbreviated (stand-alone) San Mak Row Ham Arb Qid Sam Narrow (stand-alone) S M R H A Q S Months Wide (format) January February March April May June July August September October November December Abbreviated (format) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Narrow (format) J F M A M J J A S O N D Wide (stand-alone) January February March April May June July August September October November December Abbreviated (stand-alone) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Narrow (stand-alone) J F M A M J J A S O N D Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated YIA YIG Narrow YIA YIG Date Formats Full 2008-02-05T18:30:30 = Maakisanyo, February 05, 2008 1995-12-22T09:05:02 = Arbe, December 22, 1995 -0010-09-15T04:44:23 = Qidaame, September 15, -10 Long 2008-02-05T18:30:30 = 05 February 2008 1995-12-22T09:05:02 = 22 December 1995 -0010-09-15T04:44:23 = 15 September -10 Medium 2008-02-05T18:30:30 = 05-Feb-2008 1995-12-22T09:05:02 = 22-Dec-1995 -0010-09-15T04:44:23 = 15-Sep--10 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-Feb-2008 1995-12-22T09:05:02 = 22-Dec-1995 -0010-09-15T04:44:23 = 15-Sep--10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = 9:05:02 soodo UTC -0010-09-15T04:44:23 = 4:44:23 soodo UTC Long 2008-02-05T18:30:30 = 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = 9:05:02 soodo UTC -0010-09-15T04:44:23 = 4:44:23 soodo UTC Medium 2008-02-05T18:30:30 = 6:30:30 hawwaro 1995-12-22T09:05:02 = 9:05:02 soodo -0010-09-15T04:44:23 = 4:44:23 soodo Short 2008-02-05T18:30:30 = 6:30 hawwaro 1995-12-22T09:05:02 = 9:05 soodo -0010-09-15T04:44:23 = 4:44 soodo Default 2008-02-05T18:30:30 = 6:30:30 hawwaro 1995-12-22T09:05:02 = 9:05:02 soodo -0010-09-15T04:44:23 = 4:44:23 soodo Datetime Formats Full 2008-02-05T18:30:30 = Maakisanyo, February 05, 2008 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = Arbe, December 22, 1995 9:05:02 soodo UTC -0010-09-15T04:44:23 = Qidaame, September 15, -10 4:44:23 soodo UTC Long 2008-02-05T18:30:30 = 05 February 2008 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = 22 December 1995 9:05:02 soodo UTC -0010-09-15T04:44:23 = 15 September -10 4:44:23 soodo UTC Medium 2008-02-05T18:30:30 = 05-Feb-2008 6:30:30 hawwaro 1995-12-22T09:05:02 = 22-Dec-1995 9:05:02 soodo -0010-09-15T04:44:23 = 15-Sep--10 4:44:23 soodo Short 2008-02-05T18:30:30 = 05/02/08 6:30 hawwaro 1995-12-22T09:05:02 = 22/12/95 9:05 soodo -0010-09-15T04:44:23 = 15/09/-10 4:44 soodo Default 2008-02-05T18:30:30 = 05-Feb-2008 6:30:30 hawwaro 1995-12-22T09:05:02 = 22-Dec-1995 9:05:02 soodo -0010-09-15T04:44:23 = 15-Sep--10 4:44:23 soodo Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Mak 1995-12-22T09:05:02 = 22 Arb -0010-09-15T04:44:23 = 15 Qid 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 hawwaro 1995-12-22T09:05:02 = 9:05 soodo -0010-09-15T04:44:23 = 4:44 soodo 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 hawwaro 1995-12-22T09:05:02 = 9:05:02 soodo -0010-09-15T04:44:23 = 4:44:23 soodo 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 = Mak, 2-5 1995-12-22T09:05:02 = Arb, 12-22 -0010-09-15T04:44:23 = Qid, 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 = Feb 1995-12-22T09:05:02 = Dec -0010-09-15T04:44:23 = Sep MMMd (MMM d) 2008-02-05T18:30:30 = Feb 5 1995-12-22T09:05:02 = Dec 22 -0010-09-15T04:44:23 = Sep 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Mak Feb 5 1995-12-22T09:05:02 = Arb Dec 22 -0010-09-15T04:44:23 = Qid Sep 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = February 5 1995-12-22T09:05:02 = December 22 -0010-09-15T04:44:23 = September 15 MMMMdd (dd MMMM) 2008-02-05T18:30:30 = 05 February 1995-12-22T09:05:02 = 22 December -0010-09-15T04:44:23 = 15 September MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Mak February 5 1995-12-22T09:05:02 = Arb December 22 -0010-09-15T04:44:23 = Qid September 15 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 = Mak, 2008-2-5 1995-12-22T09:05:02 = Arb, 1995-12-22 -0010-09-15T04:44:23 = Qid, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Feb 1995-12-22T09:05:02 = 1995 Dec -0010-09-15T04:44:23 = -10 Sep yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Mak, 2008 Feb 5 1995-12-22T09:05:02 = Arb, 1995 Dec 22 -0010-09-15T04:44:23 = Qid, -10 Sep 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 February 1995-12-22T09:05:02 = 1995 December -0010-09-15T04:44:23 = -10 September 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 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 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 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = February 2008 1995-12-22T09:05:02 = December 1995 -0010-09-15T04:44:23 = September -10 Miscellaneous Prefers 24 hour time? No Local first day of the week Qidaame 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.16.2 2013-08-25 DateTime::Locale::sid_ET(3)
All times are GMT -4. The time now is 03:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy