LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-27-2015, 01:29 AM   #16
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12

Hi,
I do not know it does hold on long time below
https://dl.dropboxusercontent.com/u/40211031/tt393.png
 
Old 11-27-2015, 01:42 AM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,150

Rep: Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377
yes, it will run a bit longer, because it will check all the files. As you can see it already found a few and you only need to wait now...
you can try:
Code:
grep -ilr "pattern" search_dir
where you can specify the search_dir as you wish (so instead of . you can start it in another directory - that may help you to speed it up)
 
Old 11-27-2015, 07:22 AM   #18
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
# # find . -type f -exec grep 192.168 {} \; > log.txt
# that works and might be faster
# but this is usually easier for daily use:

$ for x in `find -type f` ; do grep 192.168 >> log.txt ; done

Last edited by debguy; 11-27-2015 at 07:23 AM.
 
Old 11-27-2015, 07:33 AM   #19
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,150

Rep: Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377
find is definitely slower
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with the command Huamin Linux - Software 6 06-12-2014 06:30 PM
problem with auditreduce command and praudit command preetishetty Linux - Security 0 12-03-2007 08:24 AM
Problem with at command xav.vijay Linux - Newbie 7 08-05-2007 03:32 AM
at Command Problem BBPS Linux - Software 2 09-06-2006 05:23 AM
problem with dd command ? MaaSTaaR Linux - General 5 06-25-2006 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 AM.

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