Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Terminal Help required

Terminal Help required
Thread Tools
Dedicated MacNNer
Join Date: Jul 2001
Location: canada
Status: Offline
Reply With Quote
Feb 5, 2004, 03:30 PM
 
Hey can anyone out there detail out for me how I would inside of terminal go searching for the .trashes folders inside my system?

Not quite clear on how I might just search them out, without knowing paths.

Thanks
(Last edited by bacchus; Feb 5, 2004 at 04:04 PM. )
http://www.repair-xp.com
-----------------------------
If you're looking for information on the best windows xp repair tools , check out www.repair-xp.com
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Feb 5, 2004, 03:37 PM
 
Well, it is located at /.Trashes

If you want to know how to find a file via the terminal, use the find command. For example:

find / -regex .*Trashes.*
find / | grep Trashes

will both find files with the string "Trashes" in the title.

'/' is the root at which to start searching, so if you want to only look in your home folder, use '~/' instead.
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 5, 2004, 04:02 PM
 
You need to put that in quotes:

find / -regex ".*Trashes.*"

-
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Feb 5, 2004, 04:05 PM
 
Originally posted by Moonray:
You need to put that in quotes:

find / -regex ".*Trashes.*"

-
No you don't.
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 5, 2004, 04:16 PM
 
Originally posted by Turias:
No you don't.
I do, believe me, and for those who don't the quotes won't hurt.

-
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Feb 5, 2004, 04:23 PM
 
Originally posted by Moonray:
I do, believe me, and for those who don't the quotes won't hurt.
Funny. I don't need them in 10.3.2 or RedHat 9. I don't know what OS/Shell you're using. True, you need to use them if you use strange characters like spaces, but the ones that I posted should not need quotes.

EDIT: Well, after a little testing I turns out you don't need them in bash, but do need them in tcsh. But, pffff, who uses tcsh, anyway?

(Last edited by Turias; Feb 5, 2004 at 04:28 PM. )
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 5, 2004, 04:36 PM
 
I do, and it is of course the far superior shell for interactive use (and you don't have to think about when it expands a * and when not because it always does).

-
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2