Alfred Vahau wrote: > > I agree. As an extention, the one liner can be used to insert a period. > For example > > 011001 to 01.1001 > > perl -pi -e's/^(\d{2})/\1\./' yourfile.txt ^^^^ The \1 form of backreference is deprecated, you should use $1 instead. Periods in strings don't have to be escaped.
perl -pi -e's/^(\d\d)/$1./' yourfile.txt Or you could do it like this: perl -pi -e's/(?<=^\d\d)/./' yourfile.txt John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]