Sponsored Content
Full Discussion: Extract a part of file name
Top Forums UNIX for Dummies Questions & Answers Extract a part of file name Post 302151709 by prowla on Monday 17th of December 2007 03:16:56 AM
Old 12-17-2007
Code:
f=NLL_NAM_XXXXX.XXXXXXX_1_1.txt
s=`echo $f | cut -c 9-21`
echo "$f -> $s"

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to extract certain part of log file?

Hi there, I'm having some problem with UNIX scripting (ksh), perhaps somebody can help me out? For example: ------------ Sample content of my log file (text file): -------------------------------------- File1: .... info_1 ... info_2 ... info_3 ... File2: .... info_1 ... info_2 ...... (10 Replies)
Discussion started by: superHonda123
10 Replies

2. Shell Programming and Scripting

extract last part of string.

Hi, I have a string like this BUNDLE=/home/bob/flx/user.bun how to extract only the the last part ie, only user.bun (2 Replies)
Discussion started by: vprasads
2 Replies

3. Shell Programming and Scripting

extract part of text file

I need to extract the following lines from this text and put it in different files. From xxxx@gmail.com Thu Jun 10 21:15:46 2010 Return-Path: <xxxxx@gmail.com> X-Original-To: xxx@localhost Delivered-To:xxxx@localhost Received: from ubuntu (localhost ) by ubuntu (Postfix) with ESMTP... (11 Replies)
Discussion started by: waxo
11 Replies

4. Shell Programming and Scripting

how to extract a certain part of a line

Hi friends, I want to select and use the certain part of a line. For example I have the following line home/1245/hgdf/acsdf/myhome/afolder/H2O/endfile how can I extract the part " /myhome/afolder/H2O/endfile " thanks (6 Replies)
Discussion started by: rpf
6 Replies

5. Shell Programming and Scripting

Extract part of a string

I have a file with 100s of lines of text. I want to perform an extraction of this line: Info bpzs(pid=2652) using 1000 bits I have not been able to extract it. Should I try expr match or is there another method? This line has data both in front of and in back of it. I do not have grep -o... (5 Replies)
Discussion started by: newbie2010
5 Replies

6. Shell Programming and Scripting

Extract part of file

Hello All, I need to extract part of a file into a new file My file is Define schema xxxxxx Insert into table ( a ,b ,c ,d ) values ( 1, 2, 3, (15 Replies)
Discussion started by: nnani
15 Replies

7. Shell Programming and Scripting

Extract the part of sequences from a file

I have a text file, input.fasta contains some protein sequences. input.fasta is shown below. >P02649 MKVLWAALLVTFLAGCQAKVEQAVETEPEPELRQQTEWQSGQRWELALGRFWDYLRWVQT LSEQVQEELLSSQVTQELRALMDETMKELKAYKSELEEQLTPVAEETRARLSKELQAAQA RLGADMEDVCGRLVQYRGEVQAMLGQSTEELRVRLASHLRKLRKRLLRDADDLQKRLAVY... (8 Replies)
Discussion started by: rahim42
8 Replies

8. UNIX for Advanced & Expert Users

Need help to extract part of the string

Hi, I have a string with name as 20140412-s1-Potopolive_promos_20140412. So I want to extract only Potopolive string. Could you please help me the command. O/p : Potopolive Thx in advance (5 Replies)
Discussion started by: lkeswar
5 Replies

9. Programming

Extract part of an archive to a different file

I need to save part of a file to a different one, start and end offset bytes are provided by two counters in long format. If the difference is big, how should I do it to prevent buffer overflow in java? (7 Replies)
Discussion started by: Tribe
7 Replies

10. Shell Programming and Scripting

Extract a part of variable/line content in a file

I have a variable and assigned the following values ***XYZ_201519_20150929140642_20150929140644_211_0_0_211 I need to read this variable from backward and stop read when I get first underscore (_) In this scenario I should get 211 Thanks Kris (3 Replies)
Discussion started by: mkris
3 Replies
DateTime::Locale::hi(3) 				User Contributed Perl Documentation				   DateTime::Locale::hi(3)

NAME
DateTime::Locale::hi SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'hi' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Hindi. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (format) XXX XXXX XXX XXXX XXXXX XXX XXX Narrow (format) XX XX XX XX XX X X Wide (stand-alone) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (stand-alone) XXX XXXX XXX XXXX XXXXX XXX XXX Narrow (stand-alone) XX XX XX XX XX X X Months Wide (format) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Abbreviated (format) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Narrow (format) X XX XX X X XX XX X XX X X XX Wide (stand-alone) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Abbreviated (stand-alone) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Narrow (stand-alone) X XX XX X X XX XX X XX X X XX Quarters Wide (format) XXXXX XXXXX XXXXXXX XXXXX XXXXX XXXXX XXXXXX XXXXX Abbreviated (format) XXXXX XXXXX XXXXXXX XXXXX XXXXX XXXXX XXXXXX XXXXX Narrow (format) 1 2 3 4 Wide (stand-alone) XXXXX XXXXX XXXXXXX XXXXX XXXXX XXXXX XXXXXX XXXXX Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated XXXXXXXX XX Narrow XXXXXXXX XX Date Formats Full 2008-02-05T18:30:30 = XXXXXXX, 5 XXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX, 22 XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXX, 15 XXXXXXX -10 Long 2008-02-05T18:30:30 = 5 XXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXX -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 = 5-2-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-9--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 = 6:30:30 PM UTC 1995-12-22T09:05:02 = 9:05:02 AM UTC -0010-09-15T04:44:23 = 4:44:23 AM UTC Long 2008-02-05T18:30:30 = 6:30:30 PM UTC 1995-12-22T09:05:02 = 9:05:02 AM UTC -0010-09-15T04:44:23 = 4:44:23 AM UTC Medium 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM Short 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Default 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXX, 5 XXXXX 2008 6:30:30 PM UTC 1995-12-22T09:05:02 = XXXXXXXX, 22 XXXXXXX 1995 9:05:02 AM UTC -0010-09-15T04:44:23 = XXXXXX, 15 XXXXXXX -10 4:44:23 AM UTC Long 2008-02-05T18:30:30 = 5 XXXXX 2008 6:30:30 PM UTC 1995-12-22T09:05:02 = 22 XXXXXXX 1995 9:05:02 AM UTC -0010-09-15T04:44:23 = 15 XXXXXXX -10 4:44:23 AM UTC Medium 2008-02-05T18:30:30 = 05-02-2008 6:30:30 PM 1995-12-22T09:05:02 = 22-12-1995 9:05:02 AM -0010-09-15T04:44:23 = 15-09--010 4:44:23 AM Short 2008-02-05T18:30:30 = 5-2-08 6:30 PM 1995-12-22T09:05:02 = 22-12-95 9:05 AM -0010-09-15T04:44:23 = 15-9--10 4:44 AM Default 2008-02-05T18:30:30 = 05-02-2008 6:30:30 PM 1995-12-22T09:05:02 = 22-12-1995 9:05:02 AM -0010-09-15T04:44:23 = 15-09--010 4:44:23 AM 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 XXXX 1995-12-22T09:05:02 = 22 XXXXX -0010-09-15T04:44:23 = 15 XXX GGGGyMMMMEEEEdd (EEEE,dd MMMM GGGGy) 2008-02-05T18:30:30 = XXXXXXX,05 XXXXX CE2008 1995-12-22T09:05:02 = XXXXXXXX,22 XXXXXXX CE1995 -0010-09-15T04:44:23 = XXXXXX,15 XXXXXXX BCE-10 HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hhmm (hh:mm a) 2008-02-05T18:30:30 = 06:30 PM 1995-12-22T09:05:02 = 09:05 AM -0010-09-15T04:44:23 = 04:44 AM 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 hhmmss (hh:mm:ss a) 2008-02-05T18:30:30 = 06:30:30 PM 1995-12-22T09:05:02 = 09:05:02 AM -0010-09-15T04:44:23 = 04:44:23 AM 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 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM 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 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d/M) 2008-02-05T18:30:30 = 5/2 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/9 MEd (E, d/M) 2008-02-05T18:30:30 = XXXX, 5/2 1995-12-22T09:05:02 = XXXXX, 22/12 -0010-09-15T04:44:23 = XXX, 15/9 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 = XXXXX 1995-12-22T09:05:02 = XXXXXXX -0010-09-15T04:44:23 = XXXXXXX MMMd (d MMM) 2008-02-05T18:30:30 = 5 XXXXX 1995-12-22T09:05:02 = 22 XXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXX MMMdd (dd MMM) 2008-02-05T18:30:30 = 05 XXXXX 1995-12-22T09:05:02 = 22 XXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXX MMMEd (E, d MMM) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX -0010-09-15T04:44:23 = XXX, 15 XXXXXXX MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXX 1995-12-22T09:05:02 = 22 XXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXX MMMMEd (E, d MMMM) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX -0010-09-15T04:44:23 = XXX, 15 XXXXXXX 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 (M-y) 2008-02-05T18:30:30 = 2-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 9--10 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = XXXX, 2008-2-5 1995-12-22T09:05:02 = XXXXX, 1995-12-22 -0010-09-15T04:44:23 = XXX, -10-9-15 yMMM (MMM y) 2008-02-05T18:30:30 = XXXXX 2008 1995-12-22T09:05:02 = XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXX -10 yMMMEd (EEE, d MMM y) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 2008 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX 1995 -0010-09-15T04:44:23 = XXX, 15 XXXXXXX -10 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXX 1995-12-22T09:05:02 = 1995 XXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXX 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 XXXXX XXXXX 1995-12-22T09:05:02 = 1995 XXXXXX XXXXX -0010-09-15T04:44:23 = -10 XXXXX XXXXX yyMMdd (dd-MM-yy) 2008-02-05T18:30:30 = 05-02-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-09--10 yyMMMd (d MMM, yy) 2008-02-05T18:30:30 = 5 XXXXX, 08 1995-12-22T09:05:02 = 22 XXXXXXX, 95 -0010-09-15T04:44:23 = 15 XXXXXXX, -10 yyMMMEEEd (EEE, d MMM yy) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 08 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX 95 -0010-09-15T04:44:23 = XXX, 15 XXXXXXX -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 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 = XXXXX 2008 1995-12-22T09:05:02 = XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXX -10 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXXX 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::hi(3)
All times are GMT -4. The time now is 04:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy