On Wed, 21 Dec 2005 17:40, yuri wrote:
> On 13/12/05, Volker Kuhlmann wrote:
> > > >Possible, but that gives you zero control over the formatting and
> > > >positioning of the text on paper. If you want any control, use the
> > > >system's print system.
> > >
> > > Hmm? How about ls -lR | enscript -2
> >
> > That's not piping the output of ls straight to the printer, that's
> > creating formatted postscript for previewing and printing. What I
> > should have said was "If you want any control, either pipe ls into
> > something which produces postscript, or use the printing system, eg ls
> > | kprinter."
>
> ls | kprinter
> is my preference.
> I tried it just now - kprinter said my printer doesn't support plain
> text and would I like to convert to postscript? I said yes and it
> printed fine, but each filename on a single line. the ls command on
> its own doesn't do that in konsole.
It's not supposed to. if you are piping the o/p of ls into another command 
you usually need the file names on separate lines. You can get the columns 
back by using the -C option flag. For example try:-

ls | cat -
ls -C | cat -

-- 
CS

Reply via email to