How to list all files in directory excluding any that start with a dot?
To exclude files and directories add an exclusion pattern to the find command (see info find for more):

find /Volumes/DriveName -not -path '*/.*' &gt; driveName.txt