The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change Date from dd-mmm-yyyy to mm/dd/yyyy stringzz Shell Programming and Scripting 9 09-15-2008 11:09 AM
extract field of characters after a specific pattern - using UNIX shell script jansat HP-UX 2 05-28-2008 01:08 AM
create filename with 'DD/MM/YYYY' date format royalibrahim Shell Programming and Scripting 4 04-12-2008 09:24 AM
Date Vadidation in YYYY-MM-DD itsmehihihi Shell Programming and Scripting 1 07-22-2007 10:22 PM
sed to display date in dd/mm/yyyy format sars Shell Programming and Scripting 2 02-15-2007 03:32 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-09-2009
ganapati's Avatar
ganapati ganapati is offline
Registered User
  
 

Join Date: Jul 2006
Location: Mysore
Posts: 125
Thumbs up Perl script to extract last date field (yyyy/mm/dd)

Hi Friends,

I've a special requirement, even though I know how to implement this using shell scripting, current requirement is PERL, in which I'm not much familiar !!!.

I've a record, which has around 200 fields, out of which I need to extract only one date value from the 97th field (this field itself has many comma seperated values including date values). Below is one such an example record (observation need more attention to identify fields).

field1, field2,.....,field96,
("2008/12/17 2009/03/16 0.000000 0.000000 2009/03/16,
2009/03/16 2009/06/15 0.000000 0.000000 2009/03/18,
.......................,,
2009/03/16 2009/06/15 0.000000 0.000000 2009/03/18"),
field98,.....,field200

My requirement is to extract the second date field (marked with blue, underlined) from the last sub-field (this is also comma separated) of the field 97.

Any help would be much appreciated on this challenging task!!!

Thanks in advance / Mysore Ganapati.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0