The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
how do i exclude the current directory when using find?
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
how do i exclude the current directory when using find?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
04-24-2007
mjays
Registered User
Join Date: Apr 2007
Location: london
Posts: 40
how do i exclude the current directory when using find?
i want to compile a list of files in all sub directories but exclude the current directory.
the closest i could get was to search 'only' the current directory, which is the opposite of what i wanted.
Code:
find . ! -name . -prune
Remove advertisements
Sponsored Links
mjays
View Public Profile
Find all posts by mjays