James Devenish wrote: | on Mon, Jan 19, 2004 at 02:53:46PM +0800, Ryan wrote: | > btw: that stuff is explained in the man bash page under: Parameter | > Expansion | | This one looks promising: | ${parameter:offset:length} It's also near-identical to the Python syntax I posted, so it must be good. :-) Cameron.