The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 03-06-2007
dennis.jacob dennis.jacob is offline
dj -------
 

Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 447
Assuming that the variable var contains the above data

echo $var | awk -F: '{print substr($2,1,2)" " $3;}'
Reply With Quote