On Thu, 12 Dec 2002, digest_ wrote: > how do you list the directories in linux using ls? > `ls -d` returns '.'
How about ls -F | grep '/' "ls -F" postpends a type character to the file names. In particular, directories will have a '/' character postpended. The "grep" will catch these files which are directories. P~Manalastas _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
