LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-12-2016, 11:22 AM   #1
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Rep: Reputation: 0
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
 
Old 01-12-2016, 11:28 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
grep?
 
1 members found this post helpful.
Old 01-12-2016, 11:49 AM   #3
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Original Poster
Rep: Reputation: 0
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.
 
Old 01-12-2016, 12:11 PM   #4
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Original Poster
Rep: Reputation: 0
Windows Grep is working on main parent folder. Please suggest if anybody has used better tool.
 
Old 01-12-2016, 12:20 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shelja.fet@mriu.edu.in View Post
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.
 
Old 01-12-2016, 12:43 PM   #6
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Original Poster
Rep: Reputation: 0
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.
 
Old 01-12-2016, 12:47 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by shelja.fet@mriu.edu.in View Post
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.
 
Old 01-12-2016, 12:53 PM   #8
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Original Poster
Rep: Reputation: 0
No, on Windows.
 
Old 01-12-2016, 01:10 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
1 members found this post helpful.
Old 01-12-2016, 01:22 PM   #10
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Original Poster
Rep: Reputation: 0
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.
 
Old 01-12-2016, 01:44 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shelja.fet@mriu.edu.in View Post
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.
 
Old 01-17-2016, 07:43 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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" *


-
 
1 members found this post helpful.
Old 01-19-2016, 10:51 AM   #13
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Original Poster
Rep: Reputation: 0
Thanks @ Knudfl.
Your positive helpful attitude is highly apprecible.
 
Old 01-19-2016, 12:01 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shelja.fet@mriu.edu.in View Post
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.
 
Old 01-19-2016, 12:22 PM   #15
shelja.fet@mriu.edu.in
Member
 
Registered: Jan 2014
Location: INDIA
Posts: 31

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Find Text After String Search in Text File redir Linux - Newbie 12 08-02-2011 03:57 PM
search string in text and print string wolfipa Linux - Software 4 09-17-2009 08:50 AM
Search tools (Affinity, Tracker Search Tool, etc.) not working - don't find any files Adamantus Linux - Newbie 1 03-29-2009 11:21 PM
How to search for a string in a text file using wildcards(*,?) tnjones Programming 2 08-23-2008 07:04 AM
what tool can search for documents containing certain text? jacksonscottsly Linux - Software 3 07-19-2004 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 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