Solved

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

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Do I Really Need to “Eject” USB Drives? 10 76
Migrate data to new Mac OS X server 3 88
Grant administer privileges to another admin user 9 71
app store blank on mac 3 51
Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built ontop of the OSX Server NetBoot system and uses images & workflows as its core assets. Although …
Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built onto of the OSX Server NetBoot system and uses images & workflows as its core assets. While work…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

792 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