Solved

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

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange support of mac 2 74
Mac OS reinstall process and move to SSD 12 80
pdf to word 13 79
Best tool to rename photos by date name in Mac and PC 32 81
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
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…
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…

810 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