Re: save buffer with the same filename, but with different extension
- On 11/6/06, dsjkvf <dsjkvf@...> wrote:
> and one more question: is it possible somehow to macro the followingif anybody is interested:
> action -- i want to save an open file FILENAME.EXT1 as FILENAME.EXT2.
> of course, it's no pain at all to do it manually, but since i want to
> add this procedure at the end of a macro, after a number of other
> transformations, it would be very handy to automate this too.
set-variable $FILE_TMPNAME &lef $buffer-bname -4
set-variable $FILE_NEWNAME &cat $FILE_TMPNAME ".EXT2"