Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Find finds more .odt files in the subdirectories.
./search/applications/sent/2009/7.13.bindery/2009.07.13.asap-print-depot-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.all-canadian-printing-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.signature-press-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.octavia+co-press-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.central-web-calgary-atttach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.apache-superior-printing-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.kallen-graphics-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.copy-repro-inc-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.mcAra-printing-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.active-bindery-attach.odt
./search/applications/sent/2009/7.13.bindery/2009.07.13.bolder-graphics-attach.odt
Why didn't find locate these files from the documents directory; I thought it was
supposed to search all the subdirectories; when I changed into work_search it searched
the subdirectories under it? what am I not understanding here?
agreed, but the excellence of locate has always stopped me learning find properly, and locate only searches its database of filenames, so you can't do everything with it.
Quote:
If you get too much information, narrow it down with grep to select things in the /path/to/file that you think might apply. Eg:
Code:
locate .odt | grep Documents
in this case, it seems to be documents and not Documents, which makes me feel a bit smug (it won't last) about the fact that I would habitually do
Code:
locate .odt | grep -i Documents
without thinking. (Actually, that's a lie, what i'd do without thinking is
Code:
locate documents | grep -i .odt
or
Code:
locate documents | grep -i canadian | grep -i .odt
) (Ha! Lots of Irritating Single Parenthesise, beat that )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.