Re: Perls before swine
By: Deuce to Angus McLeod on Tue Jun 20 2006 00:03:00
Convert a file with Ctrl-A characters to use \1's that are more easily edited:
perl -i -pe 's/\\1/\x01/g' somefile.ext
Convert \1's back to Ctrl-A's:
perl -i -pe 's/\x01/\\1/g' somefile.ext
*blink*
Or vice-versa.
LOL! Seems like I when I cut'n'pasted I shoulda pasted'n'cut instead!
---
Playing: "Gaayatri" by "Ravi Shankar"
from the "Chants of India" album
þ Synchronet þ Programatically generated on The ANJO BBS