Hi, Hope someone can help me with this... I've got a directory with about 1000 or so files named with this convention: filename.SNG.txt (don't ask - long story...) Now, filename is a random sequence of between 5 and eight numeric characters. My question is this: Does anyone know of a way in bash script to rename all the files of the above format to filename.txt? To throw (potentially) a spanner in the works, the files that need to be renamed aren't the only files in the directory. Any help will be gratefully accepted. James -- James Ogley, Webmaster, Rubber Turnip james@rubberturnip.org.uk http://www.rubberturnip.org.uk Jabber: riggwelter@myjabber.net Using Free Software since 1994, running GNU/Linux (SuSE 8.2). GNOME updates for SuSE: http://www.usr-local-bin.org