I need to basically go through all the sql files in a directory and delete the last line in the file and append a new line to it (entered by the user on the command line). The purpose of this is to write the version number to a sql file which will be done by the user entering the version number on the command line and it then writes the line /*VerNo : 5.0.0.0*/ to the bottom of the line so then the next day this needs to be removed and the new line added i.e /*VerNo : 5.0.0.1*/. Can anyone help me?!?!? This message posted from opensolaris.org _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org