in reply to shell script query

Sorry, mate, wrong forum. This is for Perl programming.

By the way, if you ask in a forum about shell scripting, I strongly suggest that you also mention, which shell you are using.

Having said this, your command syntax is likely bash or zsh or ksh, and probably taking a substring. If it is bash, grep the man page for the chapter "Parameter Expansion".
-- 
Ronald Fischer <ynnor@mm.st>