Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re^4: type discriminating directory listing Message-ID: <2519@kappl.cs.vu.nl> Date: 12 May 89 23:42:14 GMT References: <1529@cmx.npac.syr.edu> <8905110644.AA01902@rodan.acs.syr.edu> <2508@star.cs.vu.nl> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 19 tale@pawl.rpi.edu (David C Lawrence) writes: \jdpeek@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@star.cs.vu.nl> maart@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@cs.vu.nl, mcvax!botter!maart