Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Sun, 1 Jul 2007, Mike Miller wrote:
perl -pi -e 's/^(.*?)ABC.*ABC(.*?)$/$1ABC$2/' file*.txt
If you just wanted the lengths of the two strings you could do this:
perl -pi -e 's/^(.*?)ABC.*ABC(.*?)$/length ($1) ." ABC ". length ($2)/e' file*.txt
That would give you stuff like this:
9439 ABC 7702
Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members