LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Please suggest appropriate software tool to search a text/string across multiple different files (https://www.linuxquestions.org/questions/linux-newbie-8/please-suggest-appropriate-software-tool-to-search-a-text-string-across-multiple-different-files-4175563724/)

shelja.fet@mriu.edu.in 01-12-2016 11:22 AM

Please suggest appropriate software tool to search a text/string across multiple different files
 
Hi,

I am studying code of OLSR routing protocol in MANET on NS2. In order to check implementation of each user defined entity available in different files, i need to apply search-"ctrl+f" in each file separately. Its too time consuming to search a text/string across multiple different files in a folder.

Please suggest any appropriate software tool to ease the job on UBUNTU or Windows OS.


Thanks & Warm Wishes

suicidaleggroll 01-12-2016 11:28 AM

grep?

shelja.fet@mriu.edu.in 01-12-2016 11:49 AM

Yes its command line utility for use with UNIX OS.
Can you please, give detail information for any appropriate tool on Windows.
Please check http://www.wingrep.com/ for Windows Grep, if its appropriate.

shelja.fet@mriu.edu.in 01-12-2016 12:11 PM

Windows Grep is working on main parent folder. Please suggest if anybody has used better tool.

TB0ne 01-12-2016 12:20 PM

Quote:

Originally Posted by shelja.fet@mriu.edu.in (Post 5476976)
Hi,
I am studying code of OLSR routing protocol in MANET on NS2. In order to check implementation of each user defined entity available in different files, i need to apply search-"ctrl+f" in each file separately. Its too time consuming to search a text/string across multiple different files in a folder.

Please suggest any appropriate software tool to ease the job on UBUNTU or Windows OS.

From this previous post:
http://www.linuxquestions.org/questi...5/#post5093252

..you are a 'research scholar'. So the question remains: why can you not research this for yourself?? Google can give you MANY software suggestions for doing what you want, with a brief look. Again, read the "Question Guidelines" link in my posting signature, and do basic research on your own. There are over 17 MILLION hits in Google for "search for string in multiple files windows"...the first two hits have NUMEROUS suggestions.

shelja.fet@mriu.edu.in 01-12-2016 12:43 PM

Yes ofcourse, you are right. I have already checked on google so many, installed & used Windows Grep but, can not install all to find out which is better. So, simply asked on this forum if anybody could reply for better one on the basis of personal usage experience.

273 01-12-2016 12:47 PM

Quote:

Originally Posted by shelja.fet@mriu.edu.in (Post 5477022)
Yes ofcourse, you are right. I have already checked on google so many, installed & used Windows Grep but, can not install all to find out which is better. So, simply asked on this forum if anybody could reply for better one on the basis of personal usage experience.

Are you using Windows GREP on Linux?
I'm confused.

shelja.fet@mriu.edu.in 01-12-2016 12:53 PM

No, on Windows.

suicidaleggroll 01-12-2016 01:10 PM

So you want a Windows tool to search through files on a Windows system, and you're asking on a Linux forum?

Why did your original post say you were looking for a tool on Ubuntu?

I don't have the foggiest idea what tool to use on Windows, I don't use Windows, most other people here don't either because this is a Linux forum. If I needed something, I'd probably install Cygwin and use grep in that.

shelja.fet@mriu.edu.in 01-12-2016 01:22 PM

Thanks,
Yes I asked for Ubuntu as well as for Windows. Windows Grep, I am using on windows, as member "273" asked in Post#7.

TB0ne 01-12-2016 01:44 PM

Quote:

Originally Posted by shelja.fet@mriu.edu.in (Post 5477022)
Yes ofcourse, you are right. I have already checked on google so many, installed & used Windows Grep but, can not install all to find out which is better. So, simply asked on this forum if anybody could reply for better one on the basis of personal usage experience.

The ONLY way you'll know which is better for YOU, is to try them.

As a 'research scholar', I find it hard to believe you couldn't look up and read the MANY recommendations for the many packages.

knudfl 01-17-2016 07:43 AM

Quote:

I am studying code of OLSR routing protocol in MANET on NS2. In order to check implementation of each user defined entity available in different files, i need to apply search-"ctrl+f" in each file separately. Its too time consuming to search a text/string across multiple different files in a folder.
Any "Linux OS" ....
Searching an expression / text line in e.g. ns-2.35, in all ~756 files, with one command :
$ cd ns-2.35/ && grep -Rin "text text text" *


-

shelja.fet@mriu.edu.in 01-19-2016 10:51 AM

Thanks @ Knudfl.
Your positive helpful attitude is highly apprecible.

TB0ne 01-19-2016 12:01 PM

Quote:

Originally Posted by shelja.fet@mriu.edu.in (Post 5480943)
Thanks @ Knudfl. Your positive helpful attitude is highly apprecible.

...and if you had bothered to even TRY to look this up before opening this thread, you'd have found the same answer.

The VERY FIRST REPLY said to use grep, you were directed to search strings to tell you this (which you didn't bother to even TRY). I'm sure as a 'research scholar' you cite your sources accurately.

shelja.fet@mriu.edu.in 01-19-2016 12:22 PM

R/Sir,
There are no personal issues to comment on.
Yes, I already got suggestion to use grep in first reply and kindly note, I have already marked this thread as solved. But if someone helps you, you should be thankful and appreciate, thats why i have replied to post#12 by Knudfl..no personal hits.


All times are GMT -5. The time now is 11:47 PM.