まず、ls -Fでディレクトリの末尾に/を付与します。

その後に/が含まれているもののみ、grepで検索します。

# ls -F | grep /
Desktop/
test2/
testf/
tmp/
・・・