Re: add info to beginning of a line

2002-04-19 Thread John W. Krahn
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 str

RE: add info to beginning of a line

2002-04-19 Thread Tucker, Ernie
I want to thank everyone for the cool and useful info. Just what the young perl jedi needed :) -Original Message- From: Alfred Vahau To: Timothy Johnson Cc: [EMAIL PROTECTED] Sent: 4/19/2002 8:35 PM Subject: RE: add info to beginning of a line I agree. As an extention, the one liner

RE: add info to beginning of a line

2002-04-19 Thread Alfred Vahau
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 Alfred Vahau Project Breeze UniPNG --- RE: add info to beginning of a line Date

RE: add info to beginning of a line

2002-04-19 Thread Timothy Johnson
That's a neat trick. I'll have to use that. -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: Re: add info to beginning of a line Ernie Tucker wrote: > > I have a text file that ha

Re: add info to beginning of a line

2002-04-19 Thread John W. Krahn
Ernie Tucker wrote: > > I have a text file that has a list of info. I need to add a 00 to the > beginning of each line. What is the best way to do this? perl -pi -e's/^/00/' yourfile.txt John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: add info to beginning of a line

2002-04-19 Thread A. Rivera
day, April 19, 2002 8:14 AM Subject: add info to beginning of a line > > > I have a text file that has a list of info. I need to add a 00 to the > beginning of each line. What is the best way to do this? > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

add info to beginning of a line

2002-04-19 Thread Tucker, Ernie
I have a text file that has a list of info. I need to add a 00 to the beginning of each line. What is the best way to do this?