Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add to the format. 1

Status
Not open for further replies.

CALYAN

Programmer
Apr 23, 2001
39
US
I used this to extract somepart of the date
FILENAME=$(date +%b%d)
printf $FILENAME

It generates output like this.?
Jan13(example)

But I need Jan13.gz

how to add this?

regards
s.kalyan
 
FILENAME=$(date +%b%d).gz
printf $FILENAME

Jean Pierre.
 
Try this:
Code:
FILENAME=$(date "+%b%d.gz")

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top