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
Getting month and changing format marringi UNIX for Dummies Questions & Answers 7 05-19-2008 11:42 AM
How to print log file in column format using awk suresh3566 Shell Programming and Scripting 2 05-06-2008 10:18 AM
How to format number/string in ksh GNMIKE Shell Programming and Scripting 2 07-03-2005 12:44 PM
delete files one day old in current month only maverick Shell Programming and Scripting 4 10-31-2003 08:39 AM
may be simple but i don't know -- Print current date from C program ls1429 High Level Programming 6 02-18-2002 09:50 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-09-2006
Registered User
 

Join Date: Mar 2006
Posts: 2
Stumble this Post!
How to print current month - 1 in string format

I need to get the current month -1 in string format, like Feb-2006. I am using k shell.

Any help is appreciated.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-09-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,002
Stumble this Post!
as alsways trying searching FAQs of these forums - this question has been asked and answered many times. Something like this should get you started
Reply With Quote
  #3 (permalink)  
Old 03-09-2006
Registered User
 

Join Date: Mar 2006
Posts: 2
Stumble this Post!
Thanks for your responce, I am using this "date +%b_%Y" and I am able to print Mar_2006 , but I want to get something like this Feb_2006.


Any reply is highly appeciated.
Reply With Quote
  #4 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Oct 2002
Posts: 670
Stumble this Post!
Look at vgersh's suggestion again. He points you to the correct place to get the answer.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:17 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