I have a directory on my FreeBSD server whose contents are created by Windows users over Samba. The filenames and paths within it sometimes contain spaces, as is common in the Windows world.
I just tried to delete some files in a subdir which had been duplicated.
rm -v "New folder (1)/*"failed using both single+double quotes ("no such dir or file")
rm -v New\ folder\ \(1\)/*succeeded
I thought that spaces in paths could be handled by putting the path within quotes. If I'm copy/pasting the path then I would find it easier to add quotes than to manually escape every space or other special character in it.
What do I need to do, to get the first example to work correctly?