Posted by Mark ??;-\) on 11/23/05 04:42
This will find the files you specified:
(^[A][B][C]) ([1-9a-zA-Z]*)
I tried finding the right substitution syntax, but didn't really find a
solution. It looks like maybe using tr/ to translate between the UC and LC
would be a start. Look at http://www.comp.leeds.ac.uk/Perl/sandtr.html
Unfortunately I don't have BASH on this computer so I can't really work more
on this.
-Mark
"Tomek Toczyski" <guf@kajak.org.pl> wrote in message
news:Pine.GSO.4.61.0511230246330.28301@ztest...
>I would like find all occurences of "ABC" which are not followed by "123"
> and replace them with "abc". For example:
> "ABC dd" -> "abc dd"
> "ABC123" -> "ABC123"
> "ABC 123" -> "abc 123"
>
> Give me a recipe, please. I've spent 2 hours googling for it.
>
>
> -tt.
Navigation:
[Reply to this message]
|