Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!hpsal2!morrell From: morrell@hpsal2.HP.COM (Michael Morrell) Newsgroups: comp.unix.questions Subject: Re: type discriminating directory listing Message-ID: <14660011@hpsal2.HP.COM> Date: 12 May 89 17:58:34 GMT References: Organization: HP System Architecture Lab, Cupertino Lines: 12 / hpsal2:comp.unix.questions / jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) / 12:44 am May 11, 1989 / 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 ---------- You can also force multicolumn output using the "-C" option to "ls". Thus, "ls -CF | grep '[/@]$'" will work. Michael