How to remove new line chars

2004-10-21 Thread Abhishek Dave
I am stucking with my problem of reading xml file , I am trying to remove the new line chars form xml file and just readout the xml tags. Please any guys have a look at this one. please guide me some good stuff abut regex in perl . Thanks and Regards, abhishek

Re: How to remove new line chars

2004-10-21 Thread Steve Bertrand
I am stucking with my problem of reading xml file , I am trying to remove the new line chars form xml file and just readout the xml tags. Please any guys have a look at this one. please guide me some good stuff abut regex in perl . perldoc perlretut perldoc perlre Have fun! Steve

Re: How to remove new line chars

2004-10-21 Thread Willy West
On Thu, 21 Oct 2004 11:23:59 -0400 (EDT), Steve Bertrand [EMAIL PROTECTED] wrote: I am stucking with my problem of reading xml file , I am trying to remove the new line chars form xml file and just readout the xml tags. Please any guys have a look at this one. please guide me some

RE: How to remove new line chars

2004-10-21 Thread Bob Showalter
Abhishek Dave wrote: I am stucking with my problem of reading xml file , I am trying to remove the new line chars form xml file and just readout the xml tags. If you're trying to parse XML, use an XML parser. http://perl-xml.sourceforge.net/faq/ -- To unsubscribe, e-mail: [EMAIL

Remove a line

2001-12-19 Thread Prasanthi Tenneti
hi, how to remove a line from a file? pls help me. thank you. prasanthi. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Remove a line

2001-12-19 Thread Jon Molin
Prasanthi Tenneti wrote: hi, how to remove a line from a file? pls help me. press the delete key repetedly? :) but really, i think you'll need to give som more info. what line? first line, last line, random line, line nbr n? would this be it? my $line_to_delete = 7; open (F, 'some_file

RE: Remove a line

2001-12-19 Thread Nisim, Amit
hi, perl -p -i -e 'undef $_ if /$line/' filename Amit -Original Message- From: Prasanthi Tenneti [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 3:40 PM To: [EMAIL PROTECTED] Subject: Remove a line hi, how to remove a line from a file? pls help me. thank you

RE: Remove a line - correction

2001-12-19 Thread Nisim, Amit
hi, perl -p -i -e 'undef $_ if /line/' filename Amit -Original Message- From: Prasanthi Tenneti [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 3:40 PM To: [EMAIL PROTECTED] Subject: Remove a line hi, how to remove a line from a file? pls help me. thank you

RE: Remove a line - correction

2001-12-19 Thread Stef
: Remove a line - - - - - hi, - how to remove a line from a file? - pls help me. - thank you. - prasanthi. - - - -- - To unsubscribe, e-mail: [EMAIL PROTECTED] - For additional commands, e-mail: [EMAIL PROTECTED] - - -- - To unsubscribe, e-mail: [EMAIL PROTECTED] - For additional commands, e

RE: Remove a line

2001-12-19 Thread Prasanthi Tenneti
Hi, you are correct . I have one file like this [praveen@calvin] rpm1.rpm rpm2.rpm rpm3.rpm [praveen@calvin] rpm3.rpm qwe.rpm [praveen@calvin] I want to remove [praveen@calvin]. evey time [praveen@calvin]cahanges ,It depends on user. so I want to remove the line which starts with '['and ends

Re: Remove a line

2001-12-19 Thread Michael Fowler
On Wed, Dec 19, 2001 at 03:40:21PM +0200, Prasanthi Tenneti wrote: how to remove a line from a file? See perldoc -q 'line in a file', or the second question at http://www.perldoc.com/perl5.6.1/pod/perlfaq5.html Michael -- Administrator www.shoebox.net Programmer, System