Quote:
Originally Posted by gilead
I couldn't find anything in the ls man page to do this. Do either of the following help?
Code:
ls /opt /usr | sed -e '/:/d' -e '/^$/d'
find /opt /usr -maxdepth 1 -print
|
I didn't find anything in the man pages either. The first method is a bit cumbersome, but the latter method works good - I hadn't thought of using find.
still if there's a way to do it with just plain ol' ls, I'd be interested to know.