type discriminating directory listing
Michael Morrell
morrell at hpsal2.HP.COM
Sat May 13 03:58:34 AEST 1989
/ hpsal2:comp.unix.questions / jdpeek at 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
More information about the Comp.unix.questions
mailing list