LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2008, 10:10 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
output of date


when I use the below command , the output is Jan 08

$date +"%b %d"
Jan 08

if I want the output is
Jan 8 ( without 0 )

can advise what can i do ? thx
 
Old 01-07-2008, 10:19 PM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
see if your date version has the -e option. Always check the man page
Code:
# date +"%b%e"
Jan 8
 
Old 01-07-2008, 11:30 PM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by ghostdog74 View Post
see if your date version has the -e option. Always check the man page
Code:
# date +"%b%e"
Jan 8

Thx a lot.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture partial output from `date` command tekmann33 Linux - Newbie 7 12-27-2006 01:09 PM
formatting date output grob115 Linux - Newbie 2 01-28-2006 08:03 AM
Bash: add date to output line blizunt7 Programming 7 11-10-2004 03:45 AM
Shell Script for Gzipping with date output Junior41180 Programming 1 10-16-2004 06:39 AM
use date as output filename? wijnands Linux - Newbie 1 05-12-2004 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration