Hi my lovely friends,
Im writing one pgm in which i trying to assign some values like
$var='Jun 6'
but if i do echo of this $var will trim the spaces expect one space.
$echo $var
$Jun 6
But if var='Jun 28', then this will works fine
$echo $var
$Jun 28
this is required to exctract date wise files like
$ls -lrt
XXXXXXXXXXXXX XXXXXXXXX XXXXXXX 00:10 Jun 6 test.txt
XXXXXXXXXXXXX XXXXXXXXX XXXXXXX 00:10 Jun 28 test.txt
$var=`ls -lrt | grep -i 'Jun 6'`
$echo $var
$Jun 6
this is very much essential for my program.
Hope your help.