hi,
how do i display only directories with `ls` command, from the man page, ls -d should work, but it only shows .(dot directory), if i try ls -d *, it shows all files.
is it we have the options (is it possible only with ls options),
$ ls -p * |grep /$ $ ls -l * |grep ^d
hope someone here has solution
JAI
--- jai@cyberspace.org wrote:
GLUG Meeting on 13th July, 4pm at KReSIT, IIT Campus, Powai.
----------------------------------------------------------
hi,
how do i display only directories with `ls` command, from the man page, ls -d should work, but it only shows .(dot directory), if i try ls -d *, it shows all files.
is it we have the options (is it possible only with ls options),
$ ls -p * |grep /$ $ ls -l * |grep ^d
hope someone here has solution
Try this ...
ls -d */
JAI
===== -- KD. www.kirandivekar.cjb.net
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com