Search This Blog

Friday, February 13, 2009

substring in linux script

str="this is a vikas test"
substr=${str:10:5} #from 10th to next 5
echo $substr

No comments:

Post a Comment