substring using AWK

can we do substring fuctionality using AWK

say I have string "sandeep"

can i pick up only portion "nde" from it.

Thanks and Regards
Sandeep Ranade

substr("sandeep",3,3)

is substr is direct fuction available in unix....

can i have such statement in unix

str=substr($in_string,$start_pos,$length)

thanks
mahabunta

substr is a function in awk.
You can use following in unix
expr substr "sandeep" 3 3

echo ${"sandeep":3:3} # works in bash