Re^4: type discriminating directory listing

Maarten Litmaath maart at cs.vu.nl
Sat May 13 09:42:14 AEST 1989


tale at pawl.rpi.edu (David C Lawrence) writes:
\jdpeek at RODAN.ACS.SYR.EDU (Jerry Peek) writes:
\\When you feed BSD "ls" into a pipe, it doesn't print the filenames in
\\columns; that's good for this test but it looks lousy on the screen if
\\there are lots of filenames.  A kludge for that looks like this:
\\	ls -F | grep '[/@]$' | pr -4 -l1 -t

\In article <2508 at star.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) writes:
\ML> ls -CF | grep ...

\This is the second posting that said "so use ls -C".

[text explaining the incorrectness deleted]

Thanks David. However, I posted the follow-up just to show that BSD "ls"
CAN print to a pipe in columns. Of course I should have noticed the `bug'.
-- 
 "`Goto considered harmful' considered |Maarten Litmaath @ VU Amsterdam:
      harmful" considered harmful!     |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list