Sponsored Content
Full Discussion: Sed and regex help needed
Top Forums Shell Programming and Scripting Sed and regex help needed Post 302223148 by Shahul on Friday 8th of August 2008 01:12:17 PM
Old 08-08-2008
MySQL

can explain little bit more so that i can try myself..

Thanks
Sha
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sed regex

I would like to do this: replace the word "prod" with the word "special" but it may occur through the file naturally without a command, I only want it to happen when it has a specific command in front of it. The command will always look like this <IMG,###,###,##,>prod/directory/IMG/file ... (4 Replies)
Discussion started by: Shakey21
4 Replies

2. Shell Programming and Scripting

sed - using regex and | need help

From my understanding when using regex1|regex2 the matching process tries each alternative in turn, from left to right, and the first one that succeeds is used. When im trying to extract the name from those examples: A) name.can.be.different.20.03.2009.boom B)... (2 Replies)
Discussion started by: TehOne
2 Replies

3. Shell Programming and Scripting

Converting perl regex to sed regex

I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly: if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies

4. Shell Programming and Scripting

Regex help needed

Hello, I'd like to write a regex that transforms a German base form of a noun into one of its inflected forms, namely I want to translate "Haus" to "Häuser" This is what I've got: /^(.+)$/_Umlaut( $1 )_er/ where _Umlaut( x )_ is a function operating on the noun stem captured by $1 The... (1 Reply)
Discussion started by: Bloomy
1 Replies

5. Shell Programming and Scripting

perl regex help needed

Hi, I want to validate strings in perl, the string may contains characters from a-zA-Z0-9 and symbols +-_.:/\ To validate such a string I computed a regex if ($string =~ m/^/) { print "valid"; } else { print "invalid"; } but this regex also validates strings that contain... (8 Replies)
Discussion started by: zing_foru
8 Replies

6. Shell Programming and Scripting

Help needed in regex

Hi, Could you please help me in writing a regex for the following requirement? Let following be the string format: abc.cdef.ghij.lm I need to check between dots, there is atleast one character{a-z,A-Z,*}. Eg: abc1.gt2.345j is valid, but not 123.abc.vff.gth because 123 should not be... (2 Replies)
Discussion started by: lorzinian
2 Replies

7. UNIX for Dummies Questions & Answers

Regex Needed:(

I am looking for the proper regex to match the hostname "areagc11" of this log.... Any help would be awsome:) Oct 25 11:08:18 areagc11 961: Oct 25 18:08:17.536 GMT: %SYS-5-CONFIG_I: Configured from console by someone onvty1 (10.156.72.97) (6 Replies)
Discussion started by: jlaigo2
6 Replies

8. UNIX for Dummies Questions & Answers

RegEX help needed

Hi, Have to filter out string before the last underscore in the following input: UNIX_Solaris_59_KSH output: UNIX_Solaris_59 dummy one but :mad: Thanks & Regards, Sourabh Singh Khichi (4 Replies)
Discussion started by: skhichi
4 Replies

9. Shell Programming and Scripting

Help with sed substitution / regex

Hi all, please can anyone show me how to use sed and regular expressions to achieve the following. If a line contains a capital A followed by exactly 5 or 6 characters followed by an angled bracket then insert an asterix before the angled bracket. So: XCONFIGA12345<X Becomes: ... (5 Replies)
Discussion started by: Jedimark
5 Replies

10. Shell Programming and Scripting

Regex with sed

hi i would like to say "DATABASENAME=" to "TABLESNAME=" remove "," and press enter myconfig file thanks (1 Reply)
Discussion started by: mnnn
1 Replies
DateTime::Locale::so(3) 				User Contributed Perl Documentation				   DateTime::Locale::so(3)

NAME
DateTime::Locale::so SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'so' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Somali. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) Isniin Salaaso Arbaco Khamiis Jimco Sabti Axad Abbreviated (format) Isn Sal Arb Kha Jim Sab Axa Narrow (format) I S A K J S A Wide (stand-alone) Isniin Salaaso Arbaco Khamiis Jimco Sabti Axad Abbreviated (stand-alone) Isn Sal Arb Kha Jim Sab Axa Narrow (stand-alone) I S A K J S A Months Wide (format) Bisha Koobaad Bisha Labaad Bisha Saddexaad Bisha Afraad Bisha Shanaad Bisha Lixaad Bisha Todobaad Bisha Sideedaad Bisha Sagaalaad Bisha Tobnaad Bisha Kow iyo Tobnaad Bisha Laba iyo Tobnaad Abbreviated (format) Kob Lab Sad Afr Sha Lix Tod Sid Sag Tob KIT LIT Narrow (format) K L S A S L T S S T K L Wide (stand-alone) Bisha Koobaad Bisha Labaad Bisha Saddexaad Bisha Afraad Bisha Shanaad Bisha Lixaad Bisha Todobaad Bisha Sideedaad Bisha Sagaalaad Bisha Tobnaad Bisha Kow iyo Tobnaad Bisha Laba iyo Tobnaad Abbreviated (stand-alone) Kob Lab Sad Afr Sha Lix Tod Sid Sag Tob KIT LIT Narrow (stand-alone) K L S A S L T S S T K L 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 Ciise ka hor Ciise ka dib Narrow Ciise ka hor Ciise ka dib Date Formats Full 2008-02-05T18:30:30 = Salaaso, Bisha Labaad 05, 2008 1995-12-22T09:05:02 = Jimco, Bisha Laba iyo Tobnaad 22, 1995 -0010-09-15T04:44:23 = Sabti, Bisha Sagaalaad 15, -10 Long 2008-02-05T18:30:30 = 05 Bisha Labaad 2008 1995-12-22T09:05:02 = 22 Bisha Laba iyo Tobnaad 1995 -0010-09-15T04:44:23 = 15 Bisha Sagaalaad -10 Medium 2008-02-05T18:30:30 = 05-Lab-2008 1995-12-22T09:05:02 = 22-LIT-1995 -0010-09-15T04:44:23 = 15-Sag--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-Lab-2008 1995-12-22T09:05:02 = 22-LIT-1995 -0010-09-15T04:44:23 = 15-Sag--10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 gn UTC 1995-12-22T09:05:02 = 9:05:02 sn UTC -0010-09-15T04:44:23 = 4:44:23 sn UTC Long 2008-02-05T18:30:30 = 6:30:30 gn UTC 1995-12-22T09:05:02 = 9:05:02 sn UTC -0010-09-15T04:44:23 = 4:44:23 sn UTC Medium 2008-02-05T18:30:30 = 6:30:30 gn 1995-12-22T09:05:02 = 9:05:02 sn -0010-09-15T04:44:23 = 4:44:23 sn Short 2008-02-05T18:30:30 = 6:30 gn 1995-12-22T09:05:02 = 9:05 sn -0010-09-15T04:44:23 = 4:44 sn Default 2008-02-05T18:30:30 = 6:30:30 gn 1995-12-22T09:05:02 = 9:05:02 sn -0010-09-15T04:44:23 = 4:44:23 sn Datetime Formats Full 2008-02-05T18:30:30 = Salaaso, Bisha Labaad 05, 2008 6:30:30 gn UTC 1995-12-22T09:05:02 = Jimco, Bisha Laba iyo Tobnaad 22, 1995 9:05:02 sn UTC -0010-09-15T04:44:23 = Sabti, Bisha Sagaalaad 15, -10 4:44:23 sn UTC Long 2008-02-05T18:30:30 = 05 Bisha Labaad 2008 6:30:30 gn UTC 1995-12-22T09:05:02 = 22 Bisha Laba iyo Tobnaad 1995 9:05:02 sn UTC -0010-09-15T04:44:23 = 15 Bisha Sagaalaad -10 4:44:23 sn UTC Medium 2008-02-05T18:30:30 = 05-Lab-2008 6:30:30 gn 1995-12-22T09:05:02 = 22-LIT-1995 9:05:02 sn -0010-09-15T04:44:23 = 15-Sag--10 4:44:23 sn Short 2008-02-05T18:30:30 = 05/02/08 6:30 gn 1995-12-22T09:05:02 = 22/12/95 9:05 sn -0010-09-15T04:44:23 = 15/09/-10 4:44 sn Default 2008-02-05T18:30:30 = 05-Lab-2008 6:30:30 gn 1995-12-22T09:05:02 = 22-LIT-1995 9:05:02 sn -0010-09-15T04:44:23 = 15-Sag--10 4:44:23 sn 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 Sal 1995-12-22T09:05:02 = 22 Jim -0010-09-15T04:44:23 = 15 Sab 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 gn 1995-12-22T09:05:02 = 9:05 sn -0010-09-15T04:44:23 = 4:44 sn 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 gn 1995-12-22T09:05:02 = 9:05:02 sn -0010-09-15T04:44:23 = 4:44:23 sn 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 = Sal, 2-5 1995-12-22T09:05:02 = Jim, 12-22 -0010-09-15T04:44:23 = Sab, 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 = Lab 1995-12-22T09:05:02 = LIT -0010-09-15T04:44:23 = Sag MMMd (MMM d) 2008-02-05T18:30:30 = Lab 5 1995-12-22T09:05:02 = LIT 22 -0010-09-15T04:44:23 = Sag 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Sal Lab 5 1995-12-22T09:05:02 = Jim LIT 22 -0010-09-15T04:44:23 = Sab Sag 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Bisha Labaad 5 1995-12-22T09:05:02 = Bisha Laba iyo Tobnaad 22 -0010-09-15T04:44:23 = Bisha Sagaalaad 15 MMMMdd (dd MMMM) 2008-02-05T18:30:30 = 05 Bisha Labaad 1995-12-22T09:05:02 = 22 Bisha Laba iyo Tobnaad -0010-09-15T04:44:23 = 15 Bisha Sagaalaad MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Sal Bisha Labaad 5 1995-12-22T09:05:02 = Jim Bisha Laba iyo Tobnaad 22 -0010-09-15T04:44:23 = Sab Bisha Sagaalaad 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 = Sal, 2008-2-5 1995-12-22T09:05:02 = Jim, 1995-12-22 -0010-09-15T04:44:23 = Sab, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Lab 1995-12-22T09:05:02 = 1995 LIT -0010-09-15T04:44:23 = -10 Sag yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Sal, 2008 Lab 5 1995-12-22T09:05:02 = Jim, 1995 LIT 22 -0010-09-15T04:44:23 = Sab, -10 Sag 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Bisha Labaad 1995-12-22T09:05:02 = 1995 Bisha Laba iyo Tobnaad -0010-09-15T04:44:23 = -10 Bisha Sagaalaad 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 = Bisha Labaad 2008 1995-12-22T09:05:02 = Bisha Laba iyo Tobnaad 1995 -0010-09-15T04:44:23 = Bisha Sagaalaad -10 Miscellaneous Prefers 24 hour time? No Local first day of the week Isniin 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::so(3)
All times are GMT -4. The time now is 08:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy