I have to confess : today I fixed a bug in an AIX executable by patching it with perl -i -pe 'BEGIN{undef$/}s/.../.../'. (At least this way I didn't have to recompile and transfer a 350-k file over a slow dialup line.)
I find it easier to type:perl -i -pe 'BEGIN{undef$/}s/.../.../'
perl -pi -0777 -e 's/foo/bar/'
(At least this way I didn't have to recompile and transfer a 350-k file over a slow dialup line.)
Why not rsync
the old remote file to be identical to your corrected local copy?
Re:rsync?
rafael on 2002-12-11T16:56:25
You're assuming that I was connected to the remote host via a regular TCP/IP/telnet connection. I wasn't : this was a serial link, and I was transferring files via Ckermit. (And I'm unfamiliar with this kind of communication).