echo ${z%???} That would do it for you. Or, you could do something like this: echo z | sed 's/.\{3\}$//' (EDIT: had to make 2 corrections to the sed command )
Last edited by Strogian; 07-25-2003 at 10:41 AM.
Forum Rules