LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2002, 08:30 AM   #1
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
how to locate ?


well , i have been scanning for anything related with isp on my computer , i have downloaded more than i can bare at linuxdoc.org and i am lost with all the information .

I tried "locate" and find but didn't help, i understand that the locate command only looks for files or words within filenames and that "find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence..." Is there any command to look for words ? i am realising that many of the topics in howto's are frequently connected in some way with other topics and it would be nice to look to all data available regarding a specific subject. thanks in advance for your help
 
Old 10-17-2002, 09:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Well, say all your docs are in /home/jamaso/docs, you could do
find /home/jamaso/docs -type f | xargs grep '\{\}' -e "search term". If you don't like typing, I use a simple shellscript called "gfind" (www.rootshell.be/~unspawn/gfind, the md5sum: www.rootshell.be/~unspawn/gfind.md5, no I didn't write it), make it executable if you trust its contents not to harm your data, and execute as "gfind </dir/to/search> <search terms in quotes>".
 
Old 10-17-2002, 10:49 AM   #3
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Sometimes the best place to look for an answer is within itself.

man locate
Scroll to the bottom, it lists revelant commands.
 
Old 10-17-2002, 03:39 PM   #4
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
Thanks !
 
Old 10-17-2002, 03:45 PM   #5
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
If you're looking for a cammand, and not sure what the command name is, you can use:

apropos <keyword>

As an example, you want to copy a file and you know the command copy doesn't work, you can type in:

apropos copy

and it will return any command or function that has anything to do with copy with a brief description. -mk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using locate command stabu Linux - Newbie 6 03-26-2004 04:13 AM
database and locate mikeshn Linux - General 1 01-19-2004 08:39 AM
locate juanb Linux - Newbie 2 12-18-2003 05:36 AM
Can't locate locate hindenbergbaby Linux - Newbie 3 10-22-2003 04:13 PM
how do i locate files? Pleasure Linux - Software 2 08-16-2003 08:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration