Thursday, 10 January 2008

To get listing of directories use ls -d */

I've been trying to get a listing of the directories contained in two
different directories so i can compare their contents. The usual 'ls'
returns too much info. Finally got it working with:

ls -d */

- gets listing of directories ending in /
- will not get the '.' entry

No comments: