[Wolves] Character stripper
sparkes
sparkes at phreaker.net
Fri Jan 16 09:00:37 GMT 2004
On Fri, 2004-01-16 at 08:33, Matthew Revell wrote:
> bambam at opendildonics.org said:
>
> > Use vi or sed. They were *invented* to do this kind of
> > thing. Or use perl.
>
> I'll have a look at vi and sed, but from what I remember of them, they're
> not exactly quick solutions. As for suggesting Perl, next time someone
> asks you to recommend a word processor, why don't you just mention C++ and
> ask why they don't write their own?! :-)
>
BamBams quite right, just upfront, my first thoughts where sed and awk
but I don't know them myself. Writing perl to do what you want would be
quick as it is pretty much what perl 1 was written to do.
Vi on the hand is a genius solution. All you need to know is the
correct command to enter I can't be arsed to try and work it out ;-) but
I believe it would start with ESC:s/ not exactly the most intuitive
solution but again exactly the kind of text hacking that vi was written
to do.
C++ would be a marginally better solution than C and lots better than
pure ones and zeros but I wouldn't ... oh wait that was a joke ;-)
sparkes
sparkes
More information about the Wolves
mailing list