On Tue, 15 Jul 2003, Eric Chevalier wrote: > 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. >
tr would change Can'T --> can't What is wanted is: Can'T --> Can't Mark -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list