I have hundreds of files that are being converted, and after they have been converted, I need to use touch to modify the timestamp on each new file. Is there is bash script that looks for all files with a .wps file extension, and can touch the new filename that has a .doc file extension ?
Example .., a ls command of all the .wps files
Apr 7 1998 Fred.wps
Apr 7 1998 Resume1.wps
Feb 4 1999 rody.wps
Nov 16 1998 Rudi.wps
May 21 1998 save1.wps
Dec 2 1997 testprnt.wps
and then an ls command of all the .doc files
Oct 21 21:32 Resume1.doc
Oct 21 21:33 RESUME.doc
Oct 21 21:34 rody.doc
Oct 21 21:35 Rudi.doc
Oct 21 21:36 save1.doc
Oct 21 21:36 testprnt.doc
so the first file (Fred.wps) won't find a match, the second file has a timestamp of Apr 7 1998 3:51:04 PM. So the bash script would replace the timestamp on Resume1.doc to Apr 7 1998 3:51:04 PM