[SOLVED] Please suggest appropriate software tool to search a text/string across multiple different files
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
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.
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.
..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.
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by shelja.fet@mriu.edu.in
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.
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.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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" *
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.