Double Slashes in Find Returns
Could anyone explain why find command returns double slashes and how to fix it?
For instance, say I wanted to retrieve all .txt files on a CD named "MY_CD".
If I do
$ find /Volumes/MY_CD/ -name "*.txt"
I get
/Volumes/MY_CD//file1.txt
/Volumes/MY_CD//file2.txt
/Volumes/MY_CD//file3.txt
.
.
.
but if I do
$ find /Volumes/MY_CD -name "*.txt"
I get the correct paths
/Volumes/MY_CD/file1.txt
/Volumes/MY_CD/file2.txt
/Volumes/MY_CD/file3.txt
.
.
.
So, if the path argument has a trailing slash, find returns double slashes in file paths, which looks to me like a bug.
Anyone knows how to fix it? This behaviour borks my scripts, which worked fine pre-SL, and I'd rather fix find than go through all my scripts to fix them.
Thanks.
Mac OS X (10.6.8)