At 02:58 PM 7/15/2003 -0600, Eric Sisler wrote:

Ok, I'm tired of banging my head against this one.  I know there must be
a simple perl, sed or tr solution, but I can't seem to find it.  I'm
cleaning up some extracted data and the one annoying thing I have left
is a single quote followed by a capital letter, which I want to change
to lowercase like so:

Can'T -->  Can't
Santa'S --> Santa's

and so on.

Maybe I'm missing something obvious, but why not a simple tr command:


tr [A-Z] [a-z] <infile >outfile

It seems to work just fine for me; caps are replaced by their lower-case equivalent, and everything else is left untouched.

Eric

--
Eric Chevalier                          E-mail: [EMAIL PROTECTED]
                                           Web: www.tulsagrammer.com
    Is that call really worth your child's life?  HANG UP AND DRIVE!


-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to