The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Concatenation
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-04-2007
Asteroid Asteroid is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 38
Concatenation

How can I do this:

date = 4 -----------> 04
Month= 3-----------> 03

I wish to make a varibale named Var1 which will hold the value of current date and month value as:

2 digits for date.
2 digits for month.

So finally var1 should hold value as 0403 --- MMDD