Getting a text file rid of all superfluous blank lines

peter kostov fedora at light-bg.com
Sat Dec 3 18:22:52 UTC 2005


On Sat, 2005-12-03 at 17:54 +0000, Paul Smith wrote:
> On 12/2/05, Mike McCarty <mike.mccarty at sbcglobal.net> wrote:
> > I sent you the source. Extract it to a file named noblank.c
> > I suspect you have already done that.
> > Ok, now build the program...
> >
> > $ gcc -o noblank noblank.c
> >
> > After this runs (takes no more than 10 seconds), you will
> > have a program named "noblank" in the current directory.
> > Either move it to a place in your path, or use ./noblank
> > to run it. The usage is:
> >
> > $ noblank < input_file > output_file
> 
> I kindly thank you, Mike, for your program. I have tried that, but when I run
> 
> $./noblank file1.txt file2.txt
> 
> the program does not terminate, as if waiting for something.
You have to redirect input and output with < and > as stated above.
> 
> Paul
> 




More information about the fedora-list mailing list