Oops - had the format slightly back to front. Try this:
Code:
ls -F /tmp | grep -v /
The command translates to "list all items in the directory
/tmp, but show a trailing slash to indicate the directories. Then pipe the results through 'grep', and filter out those items containing the slash".
Cheers,
mj