diffing special chars

plug@arcticmail.com plug@arcticmail.com
Fri, 25 Aug 2000 13:28:55 -0700


Regex Law One:

     One can easily create a regex.

Regex Law Two:

     In the time required to decipher a regex,
     even a regex written by yourself, one could
     have created a new regex from scratch in
     one-tenth the time, because of Law One.


D

* On Thu, Aug 24, 2000 at 08:24:21PM -0700, J.L.Francois wrote:
> I just took a look thru my copy of
> Mastering Regular Expressions ( O'Reilly ) a.k.a The Owl Book.
> 
> It looks like this can be done in bash but I am not willing to spend 
> the time creating something that no one will ever be able to 
> read or modify. It looks a lot easier in Perl.
> 
> Trust me, anyone that has done RegExp scripting knows what I mean
> when I say a regexp takes one week to being incomprehensible.
> 
> Get the book and give it a shot. It should be worth it.
> 
> JLF Sends...
> 
> It seems like on Thu, Aug 24, 2000 at 05:58:08PM -0700, der.hans scribbled:
> Orig Msg> Am 24. Aug, 2000 schwäzte shadoi@soulmachine.com so:
> Orig Msg> 
> Orig Msg> > Maybe piping the output from ls -b or find to tr with some options
> Orig Msg> > would do the trick.. Maybe using grep to pull out only the ones you
> Orig Msg> > want to fix for speed..
> Orig Msg> 
> Orig Msg> With tr I have to take into account all the special chars :(. It won't
> Orig Msg> change "\ " into " ", since it only works on single chars. Rod's
> Orig Msg> suggestion of sed looks like it should work, if I can get sed to behave
> Orig Msg> the way it seems it should or failing that find out how sed actually
> Orig Msg> behaves :). That would actually fix something else for me as well.
> Orig Msg> 
> Orig Msg> For now I'm using perl on the file after it was created. Already had to do
> Orig Msg> that for something else, so it's not a great sin, just something else to
> Orig Msg> try to move back to shell later on :).
> Orig Msg> 
> Orig Msg> ciao,
> Orig Msg> 
> Orig Msg> der.hans
> 
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> 
> Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss