in reply to Re^4: opening file for editing
in thread opening file for editing

You specified "no oneliners" and "no temp files". You have not specified what you are going to replace with what nor how big your file is. Under these conditions, I see no general solution (MS Word might use temp files, too, did you know?)

Replies are listed 'Best First'.
Re^6: opening file for editing
by keszler (Priest) on Oct 09, 2011 at 09:22 UTC

    MS Word™ does indeed use temp files. Open A_Word_Doc.doc, and in the same directory you'll see ~$Word_Doc.doc