Jump to content

how to search [solved]


Recommended Posts

Hi

 

I've got some problems finding a dokument, but I'm sure that i can remember some specific word inside it.

Is it possible to search for a specific word, when I'm using Linux?

In windows I have TotalCommander which can do it, but it would be great if there was a solution for Linux as well, it doesn't matter if I have to use the shell for it.

 

Regards Orts

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Thanks to both of you :D

Konqueror could do the work.

Now I just wonder where I've forgotten my head? :wacko:

 

I tried to use grep reight after my first post in this topic, but it haven't found anything yet.

I've tried to search for a word in a other file, which I know where are, and grep haven't found that file either.

Link to comment
Share on other sites

Give us the command you're using, and we'll see why it doesn't work.

I used: grep -in "the word"

logged in as user, not root. And I was in the right directory.

I've found it in a danish guide to bash, I'm using Konsole can that be the problem?

Link to comment
Share on other sites

I used: grep -in "the word"

logged in as user, not root. And I was in the right directory.

As far as I know it should be

grep -in "the word" <file(s) to search in> (without < and > of course)

In your example you could use a * which means all files in the directory. To limit you could also use *.txt or something.

Edited by Mhn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...