Hi , I have a set of files with file names like - ABC.html , tmp-ABC.html PQR.html , tmp-PQR.html ... I would like to append tmp files in main and delete tmp files within the directory. append tmp-ABC.html file to ABC.html , delete tm-ABC.html not sure whats the simplest way under the directory loop without opening files. Thanks -- Posted via http://www.ruby-forum.com/.