Straight, no chaser

rafael on 2002-12-10T15:58:11

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.)


Another way to say that

merlyn on 2002-12-10T19:10:47

perl -i -pe 'BEGIN{undef$/}s/.../.../'
I find it easier to type:
perl -pi -0777 -e 's/foo/bar/'

rsync?

nicholas on 2002-12-11T16:08:12

(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).