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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Language translation from the command line or clipboard iBot UNIX and Linux RSS News 0 04-04-2008 01:30 AM
Perl: Extracting date from file name and comparing with current date MKNENI Shell Programming and Scripting 4 03-26-2008 12:01 PM
help --translation beijingzhzj UNIX for Dummies Questions & Answers 1 11-10-2006 03:26 PM
I need translation! 801238429 Shell Programming and Scripting 7 04-05-2005 09:50 AM
need translation? wmosley2 Shell Programming and Scripting 1 12-15-2003 01:03 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2005
Registered User
 

Join Date: Aug 2005
Posts: 3
perl translation - date command

I have a shell script I want to write in perl, and I want to do the following in perl:

VAR=xdirect_`date +%Y-%b-%d`*

Any ideas how on how to do this?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-23-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,420
You can compose a formatted date using a custom module "Date::Format" from CPAN (yes, you need to download and install the module before you can use it):

For details:
http://search.cpan.org/~gbarr/TimeDa...Date/Format.pm
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0