Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ftwhich(1) [debian man page]

FTWHICH(1)						      General Commands Manual							FTWHICH(1)

NAME
ftwhich - fault tolerant search for a command name SYNOPSIS
ftwhich [-#hIp][-t#] program_name DESCRIPTION
ftwhich is a fault tolerant version of the which(1) command. ftwhich searches for a given program in all directories included in your PATH environment variable and reports all files with a name that approximately matches the given program_name. ftwhich achieves fault tolerance by calculating the so called Weighted Levenshtein Distance. The Levenshtein Distance is defined as the minimum number of character insertions, deletions and replacements that transform a string A into a string B. ftwhich is similar to the which command with the following differences: - ftwhich is by default NOT case sensitive - ftwhich is fault tolerant - Some shells have a build in which command that will also search aliases. ftwhich can naturally not search for aliases as it does not know about alias definitions. - ftwhich lists all files that approximately match. The files first shown take preference over files of the same name printed later as they are from directories listed earlier in the PATH. - The level of fault tolerance can be adjusted by specifying the optional parameter tolerance. A tolerance of 0 specifies exact match. OPTIONS
-h Prints help/usage information. -I Do case sensitive search (default is case in-sensitive) -p print the actual distance value in front of the found filename. This value is equal to the number of insertions, deletions and replacements necessary to transform the name of the found program into the search key. -# or -t# Set the fault tolerance level to #. The fault tolerance level is an integer in the range 0-255. It specifies the maximum number of errors permitted in finding the approximate match. The default tolerance is (strlen(searchpattern) - number of wildcards)/6 + 1 program_name The program file to search for. '*' and '?' can be used as wildcards. '?' denotes one single character. '*' denotes an arbitrary number of characters. The last argument to ftwhich is not parsed for options as the program needs at least one program_name argument. This means that ftwhich -x will not complain about a wrong option but search for the program named -x. EXAMPLE
Search for all programs like gcc in your PATH: ftwhich gcc This will e.g. find gcc or cc or CC ... To find all files that start with any prefix and end in config and differ in 2 letters from the word config: ftwhich -2 '*config' To find all files that exactly start with the prefix if: ftwhich -0 'if*' To find all clock programs: ftwhich -0 '*clock*' BUGS
The wildcards '?' and '*' can not be escaped. These characters function always as wildcards. This is however not a big problem since there is normally hardly any command that has these characters in its name. AUTHOR
Guido Socher (guido@linuxfocus.org) SEE ALSO
whichman(1), ftff(1) Search utilities January 1999 FTWHICH(1)

Check Out this Related Man Page

QwtWeedingCurveFitter(3)					 Qwt User's Guide					  QwtWeedingCurveFitter(3)

NAME
QwtWeedingCurveFitter - A curve fitter implementing Douglas and Peucker algorithm. SYNOPSIS
#include <qwt_curve_fitter.h> Inherits QwtCurveFitter. Public Member Functions QwtWeedingCurveFitter (double tolerance=1.0) virtual ~QwtWeedingCurveFitter () void setTolerance (double) double tolerance () const virtual QPolygonF fitCurve (const QPolygonF &) const Detailed Description A curve fitter implementing Douglas and Peucker algorithm. The purpose of the Douglas and Peucker algorithm is that given a 'curve' composed of line segments to find a curve not too dissimilar but that has fewer points. The algorithm defines 'too dissimilar' based on the maximum distance (tolerance) between the original curve and the smoothed curve. The smoothed curve consists of a subset of the points that defined the original curve. In opposite to QwtSplineCurveFitter the Douglas and Peucker algorithm reduces the number of points. By adjusting the tolerance parameter according to the axis scales QwtSplineCurveFitter can be used to implement different level of details to speed up painting of curves of many points. Constructor &; Destructor Documentation QwtWeedingCurveFitter::QwtWeedingCurveFitter (doubletolerance = 1.0) Constructor Parameters: tolerance Tolerance See also: setTolerance(), tolerance() QwtWeedingCurveFitter::~QwtWeedingCurveFitter () [virtual] Destructor. Member Function Documentation QPolygonF QwtWeedingCurveFitter::fitCurve (const QPolygonF &points) const [virtual] Parameters: points Series of data points Returns: Curve points Implements QwtCurveFitter. void QwtWeedingCurveFitter::setTolerance (doubletolerance) Assign the tolerance The tolerance is the maximum distance, that is accaptable between the original curve and the smoothed curve. Increasing the tolerance will reduce the number of the resulting points. Parameters: tolerance Tolerance See also: tolerance() double QwtWeedingCurveFitter::tolerance () const Returns: Tolerance See also: setTolerance() Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 6.0.0 Fri Apr 15 2011 QwtWeedingCurveFitter(3)
Man Page