Home » Infrastructure » Unix » List only directories
List only directories [message #98455] Mon, 01 November 2004 07:04 Go to next message
VJ
Messages: 24
Registered: June 2002
Junior Member
What is the command to display only available directories under the current directory ?

 

Will be glad if some one can help me with the command / script to display directories and subdirectories under that.

not happy with the LS -F | grep "/" since it gives a "/" at the end.

Thanks in advance

-VJ
Re: List only directories [message #98456 is a reply to message #98455] Mon, 01 November 2004 07:52 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
ls -l | grep ^d
Previous Topic: Move file
Next Topic: dbms_output doesn't work in shell script
Goto Forum:
  


Current Time: Fri Nov 29 09:58:20 CST 2024