Hi, here's what I made a note of: $ var=file.jpg To remove at end: %: $ echo ${var%jpg} file. To remove at start: #: $ echo ${var#file} .jpg To kill entire type: $ echo ${var%.*} file HTH, \d Fonty Python and other dev news at: http://otherwiseingle.blogspot.com/