![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| stop unix find on a directory structure after finding 1st occurrence | jm0221 | Shell Programming and Scripting | 3 | 06-06-2008 08:19 PM |
| how do i exclude the current directory when using find? | mjays | Shell Programming and Scripting | 7 | 04-24-2007 09:13 AM |
| Question about Restricting Search path of FIND to current directory | super_duper_guy | UNIX for Dummies Questions & Answers | 2 | 10-17-2005 10:10 AM |
| find directory not including current | dangral | UNIX for Dummies Questions & Answers | 2 | 01-26-2005 03:02 PM |
| using find command only in current directory | jliebling | UNIX for Dummies Questions & Answers | 5 | 02-22-2001 10:00 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to stop to current directory using find
Hello,
I just want to ask the following use of find command: 1. how can I find files only to the current directory? 2. how can I find files to directories and all subdiretories (are this include soft links?) but will not go to other mountpoints that is under that mountpoint. Im combining mountstop and prune for question 1 and 2, but it is taking time. Are the results accurate? find . -mountstop -prune -type f -print but it looks like its not working as it cannot retrieve files and subdirectories either. why do I need to put "! -name ." in order for it to work? as it exclude the . file (current directory) find . ! -name . -mountstop -prune -type f -print How could I avoid looping/finding files on other mountpoints? except using the mountstop... |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|