[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 75409] New: find in files part is dog slow
From: Roland Krause <rokrau () yahoo ! com>
Date: 2004-02-17 1:59:29
Message-ID: 20040217015929.19682.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=75409
Summary: find in files part is dog slow
Product: kate
Version: 2.2
Platform: unspecified
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: kwrite-devel kde org
ReportedBy: rokrau yahoo com
Version: 2.2 (using KDE 3.2.0-0.fdr.5.rh90, Red Hat Linux release 9 \
(Shrike))
Compiler: gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
OS: Linux (i686) release 2.4.20-28.9
find in files takes forever for large directories because the -exec option was never \
really intended for a grep. A much faster approach would be to pipe the find result \
to xarg grep.
Example:
Instead of doing
find /roland/src/ftn/ \( -name *.f \) -exec grep -n -H -e stop {} \;
issue
find /roland/src/ftn/ \( -name *.f \) | xargs grep -n -H -e stop
The latter is many times faster in large directories.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic