Solved

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

Posted on 2008-10-14
5
208 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 84

Accepted Solution

by:
ozo earned 125 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 125 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 84

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you other experts are anything like me you are always looking into and testing out new features. While I was doing some research one day I ran across an app that I installed on my Mac and used as a security system. Mac OS X: SecureHome uses your …
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now