how to swap a file's extension in Console
Submitted by Saturday, 25 September, 2004 - 02:30
on
I'm trying to set up a macro in Console in which, for the current buffer, call it myfile.prg, I am able to have a a particular application run myfile.prg and store the results in myfile.out. What I can't figure out is how, for the output file, to drop the extension .prg and add the extension .out. Using ${n} I can easily store the results in myfile.prg.out. But I don't know how to get rid of the .prg in the file name. Any suggestions would be much appreciated.