![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Restrict FTP access to a single directory for only one user. | santhoshkumar_d | UNIX for Advanced & Expert Users | 8 | 05-23-2008 08:08 AM |
| Question about Restricting Search path of FIND to current directory | super_duper_guy | UNIX for Dummies Questions & Answers | 2 | 10-17-2005 09:10 AM |
| Command to recursivly search all html files below the current | inane | Shell Programming and Scripting | 3 | 11-22-2004 05:23 AM |
| Using tar for current directory, but not subs | beilstwh | UNIX for Dummies Questions & Answers | 3 | 09-13-2004 09:33 AM |
| Restrict users to ther home directory | alfabetman | UNIX for Dummies Questions & Answers | 1 | 10-04-2001 02:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Restrict my search to current directory.
Hi every1,
There is a folder with .lst files which has email id's of our project group. I want to find files which has my email id starting with sachin but i dont want find command to search subdirectories. I have read about prune but i didnt understand that. I am pretty new in this field. Please help. |
|
||||
|
The "-prune" command prevents subdirectories from being opened. So it's pretty worthless to run "find . -prune" since it only returns ".". You need this:
Code:
cd /mydir/mypath find * -prune -user root |
![]() |
| Bookmarks |
| Tags |
| find -maxdepth, grep, linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|