Re: Newbie trying to cleanup/format text file

2003-12-23 Thread John W. Krahn
"John W. Krahn" wrote: > > Stuart Clemons wrote: > > > > I'm trying to cleanup and format this text file of user names, so that I > > have one column of user names. Here's the text file: > > > > The request will be processed at a domain controller for domain FOOBAR. > > > > Group name Misc >

Re: Newbie trying to cleanup/format text file

2003-12-22 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > I kept working at it and was finally able to get rid of the unwanted lines > in the text file using a series of nested if's. It's certainly not > elegant, but it works ! > > Surely there's a more efficient way to get rid of the unwanted lines. Definitely! > > > Anywa

Re: Newbie trying to cleanup/format text file

2003-12-22 Thread William Martell
: "William Martell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 2:00 PM Subject: Fw: Newbie trying to cleanup/format text file > > - Original Message - > From: "William Martell" <[EMAIL PROTECTED]> > To: &q

Fw: Newbie trying to cleanup/format text file

2003-12-22 Thread William Martell
- Original Message - From: "William Martell" <[EMAIL PROTECTED]> To: "William Martell" <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 1:58 PM Subject: Re: Newbie trying to cleanup/format text file > Hi Stuart, > > I modified some of the cod

Re: Newbie trying to cleanup/format text file

2003-12-22 Thread John W. Krahn
"John W. Krahn" wrote: > > open FH, 'c:/foobar.txt' or die "sourcefile open failed - $!"; > while ( ) { > next if 1 .. /^-+$/; > next if /^The command completed successfully/ .. eof( FH ); > print "$_\n" for /\S+/g; > } Or better: :-) open FH, 'c:/foobar.txt' or die "sourcefile op

re: Newbie trying to cleanup/format text file

2003-12-22 Thread stuart_clemons
emons/Westford/IBM 12/22/2003 11:16 AM To [EMAIL PROTECTED] cc Subject Newbie trying to cleanup/format text file Hi all: I'm trying to cleanup and format this text file of user names, so that I have one column of user names. Here's the text file: The request will be proc

Re: Newbie trying to cleanup/format text file

2003-12-22 Thread John W. Krahn
Stuart Clemons wrote: > > Hi all: Hello, > I'm trying to cleanup and format this text file of user names, so that I > have one column of user names. Here's the text file: > > The request will be processed at a domain controller for domain FOOBAR. > > Group name Misc > CommentThes

Fw: Newbie trying to cleanup/format text file

2003-12-22 Thread William Martell
- Original Message - From: "William Martell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 11:19 AM Subject: Re: Newbie trying to cleanup/format text file > Hi Stuart, > > This is as far as I could take it: Any critiques or

Newbie trying to cleanup/format text file

2003-12-22 Thread stuart_clemons
Hi all: I'm trying to cleanup and format this text file of user names, so that I have one column of user names. Here's the text file: The request will be processed at a domain controller for domain FOOBAR. Group name Misc CommentThese are the FOOBAR users Members ---