Re: Re: Removing blank lines from a file

2004-06-09 Thread sudhindra k s
Hi I am getting this error message on using the command specified by you.   "Unrecognized file test: -i at change.pl line 28." Regards Sudhindra On Wed, 09 Jun 2004 John W. Krahn wrote : >Sudhindra K S wrote: > > > > Hi > >Hello, > > > I am new to perl and getting confused with pattern matchin

Re: Re: Removing blank lines from a file

2004-06-09 Thread sudhindra k s
Thanks But the output is printed on the STDOUT. What if i want to get each of the lines beginning with all: and put in a file or array? How do i do this? Regards Sudhindra On Wed, 09 Jun 2004 John W. Krahn wrote : >Sudhindra K S wrote: > > > > Hi > >Hello, > > > I am new to perl and getting co

Re: Removing blank lines from a file

2004-06-09 Thread John W. Krahn
Sudhindra K S wrote: > > Hi Hello, > I am new to perl and getting confused with pattern matching. > > How do i remove blank files from a file. For ex: i have a file as below > > abc > xyz > > def > > 123 > > Now i want to remove all blank lines and have an output as below > abc > xyz > def

Removing blank lines from a file

2004-06-09 Thread sudhindra k s
  Hi I am new to perl and getting confused with pattern matching. How do i remove blank files from a file. For ex: i have a file as below abc xyz def 123 Now i want to remove all blank lines and have an output as below abc xyz def 123 How do i do this? Regards Sudhindra