The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CUT command - cutting characters from end of string JWilliams AIX 2 01-28-2008 05:12 AM
Use date command to find last month Cbish68 Shell Programming and Scripting 5 08-10-2007 07:32 AM
Sed command with characters IHulky UNIX for Dummies Questions & Answers 7 04-26-2007 03:14 AM
Unix Command for finding Nul Characters fundidor UNIX for Dummies Questions & Answers 2 05-01-2005 08:32 AM
command unix to list all files created since n month ago yacsil Shell Programming and Scripting 8 12-15-2003 09:12 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2007
Registered User
 

Join Date: Dec 2006
Posts: 25
Command to get only the Three Characters of the Month

Hi,

Please let me know if I can format the output of the date command to three character month name.

For example,if I type date and enter, it should give the Month name in the following format:

Jan or Feb or Mar etc i.e, only the first three characters of the month name.

Please respond ASAP.

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-12-2007
Registered User
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
check this post
Date calculation script
Reply With Quote
  #3 (permalink)  
Old 02-12-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,355
Code:
$ date +%b
Feb
$
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




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