Released on Tuesday, 24 February 2004
Created by Matthijs Hollemans with some help from Peter Hinely, Serge Fantino, Hideki Naito, and Oscar Lesta.
Tracker Grep is a simple Tracker add-on that lets you search through text files. BeOS already comes with a tool that lets you do that, grep, but you need to use it from a Terminal window. Gone are those days of command-line trouble, because from now on Tracker Grep lets you run grep directly from the Tracker.
Drag the Tracker Grep-G
file on the Drop Tracker Grep-G here to install
icon. That's it!
Go into the /boot/home/config/add-ons/Tracker/
directory and delete the file Tracker Grep-G
.
Tracker Grep is no more than a graphical front-end to the grep tool that comes with BeOS. In the past you needed to know how grep worked in order to use Tracker Grep. As of version 3.0 this is no longer the case, although grep addicts are still catered for.
Select the files that you want to examine. Then right-click on one of the files or open Tracker's File
menu. Go to Add-Ons
and choose Tracker Grep
. Alternatively you can press the keys Right Ctrl-Alt-G
(PC keyboard) or Command-Control-G
(Macintosh keyboard). If you don't select any files at all, Tracker Grep will look at all the files in the current directory.
In addition to that, you can tell Tracker Grep to look into sub-directories and follow symbolic links as well. But if you do, then be aware that some of your links may be circular (they indirectly point at each other) which causes the search to loop forever if you don't cancel it at some point.
Because grep was meant to examine text files, Tracker Grep will only work on files that have the MIME supertype text
or message
. Normally this is true for all your text files, HTML files, e-mail messages, source code files, and so on. If a file has another MIME type (or none at all), it will be ignored. In the odd case that you also want to search non-text files, deselect the Text files only
option.
During the search, the Tracker Grep window displays the names of the files whose contents match the search pattern. You can click on the little arrow to the left of a file's name to either view or hide its matching lines. The Show contents
check box tells Tracker Grep to automatically expand or collapse the contents of all files.
And last, but not least, you can open a file by double-clicking its name or one of its matching lines.
By default, Tracker Grep escapes the search text before passing it on to grep. If you want to use grep's full power, turn off the Escape search text
item in the Options
menu. If this option is disabled, the search pattern is literally transferred to grep. This also allows you to pass any other command line options to grep, simply by typing them in the search text input field. Remember that grep runs inside the shell, so you still may have to escape characters that have a special meaning to the shell, most notably the backslash.
WARNING! With the Escape search text
option turned off, entering certain search patterns may produce unexpected results. A search pattern like /*
appears to hang the machine. Tracker Grep (and the system in general) becomes unresponsive, because the grepper thread is working like crazy. The same thing happens when you enter grep /* filename
in the Terminal (you probably should have typed \\/*
).
This version of Tracker Grep is open source and may be distributed under the terms of the MIT license.
Copyright (c) 1998-2004 Matthijs Hollemans
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Version 4.1 (Tuesday, 24 February 2004)
Version 4.0a (Wednesday, 9 July 2003)
Version 4.0 (Thursday, 13 February 2003)
Version 3.2 (Saturday, 25 November 2000)
Version 3.1 (Wednesday, 11 October 2000)
Version 3.0 (Sunday, 24 September 2000)
Version 2.2.0 (Saturday, 23 January 1999)
Version 2.1.1 (Tuesday, 12 January 1999)
Version 2.1.0 (Monday, 24 August 1998)
Version 2.0.0 (Friday, 31 July 1998)
Version 1.1.0 (Not released)
Version 1.0.0 (Saturday, 4 July 1998)