Thanks for the replies, I used sed finally, cos i understood the command and im trying to get to grips with it
crabboy, would you mind explaining how your command works, i took a look at the info pages of cut
and basename but i still don't understand it
The other thing is, i was wondering if theres a way to simulate the running of a shell script to ascertain if there are bugs etc
I don't want half the script to execute and then crash out leaving everything half done.