Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can I search a folder tree for files and folders whose names end with a space?

Posted on 2008-10-14
5
Medium Priority
?
220 Views
Last Modified: 2011-04-14
I am integrating our Macintoshes into our Windows network and file serving services.  In transferring files from one server to another, I'm coming across problem folders whose names end with a space--something easily handled on a Mac, but not in Windows at all.

How can I search and entire folder tree, in either OS X or Windows, for all files and folders whose names end with a space?

Dimarc67
New York, NY
0
Comment
Question by:Dimarc67
  • 2
  • 2
5 Comments
 
LVL 85

Accepted Solution

by:
ozo earned 500 total points
ID: 22714834
find / -name '* '
0
 
LVL 4

Author Comment

by:Dimarc67
ID: 22714871
Thanks, Ozo.  But your simple answer made me realize that I didn't provide enough information.

The folder tree I need to search is a network share on a Windows server, though I can access it from either Mac or Windows clients.

Can a OS X command line command be used to search a server share?
0
 
LVL 5

Assisted Solution

by:AJVienna
AJVienna earned 500 total points
ID: 22715122
The shares appear under /Volumes after being mounted. E.g. by going there in the Finder.

Then you can open up a terminal and type:
find /Volumes/<YourShare> -name 't* '

use
ls /Volumes
to see your mounted shares.


0
 
LVL 85

Expert Comment

by:ozo
ID: 22715123
yes
find /Volumes/sharename -name '* '
0
 
LVL 4

Author Closing Comment

by:Dimarc67
ID: 31506030
Worked perfectly.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question