Archive

Archive for August 2, 2010

substring in shell script

Example:
======
     My_Name=”Karuvatchi”
     My_Substr=”$(echo ${My_Name:0:3})”
     echo $My_Substr

Output:
======
     Kar

Advertisements
Categories: Technical, unix commands