I want to list only the directories in specified path (ls doesn\'t have such option). Also, can this be done with a single line command?
ls
This has been working for me:
`ls -F | grep /`
(But, I am switching to echo */ as mentioned by @nos)
echo */