Re: refine find search
Originally Posted by
nathanv221
hey i'm looking for a file and when i use a find search i am getting too much information to sift through. i am only looking for a .txt file but and getting a lot of .deb files, how do i refine the search to only look for .txt files?
if it helps what im putting in is "find REQUIRED /home/user/../../var/cache/apt/archives/"
where of course user is my name
The below would look for only .txt files in the /path/to/search directory .
Code:
find /path/to/search -name "*.txt" -print
<edit>Sorry for the redundant post , guess me and charlsea were minutes apart .
However i want to add something for your help , in a find search if you can not remember the exact file name you can always use wildcards and wrap them in double quotes as above .
</edit>
Last edited by codemaniac; June 20th, 2012 at 07:30 PM.
“Progress is made by lazy men looking for easier ways to do things”
— Robert A. Heinlein
Bookmarks