6 projects tagged "grep"
Xmldego provides XML parsing and/or transformation by binding callbacks to XML parsing events in the context of an XML element. While SAX, for example, calls your callbacks on every start tag, Xmldego will do so only for the child axis path you request. Xmldego is particularly useful when only smaller bits of a much larger XML file need to be processed, because only interest in the relevant bits need to be coded. In contrast to a DOM parser, much larger XML files can be processed, because the whole file is not loaded into memory.
Grep.pm is a much-modified fork of tcgrep. It understands context, matching from the start or end of a file (with a line count or byte count), and features size limits and highlighting. It extends matching to boolean expressions, structuring regular expressions, or even arbitrary pieces of Perl code. It can perform basic stemming and synonym-expansion in regular expressions (using expansyn). It also handles \0-lines, paragraphs, file slurping, directory recursion, and compressed files. It can act either as a Perl module or a command-line program. Grep.xchange is a support program taking grep or Grep.pm input and applying an expression at each grep match to the files specified in the grep output. This expression can be arbitrary Perl modifying e.g. just the line of the match with s///g, or operate against the current pos() position in the whole file. Grep.xchange --modified goes one step further and replaces the matched lines with the (edited) text from the grep output. Changes are logged in diff -u format and can be revoked/redone with patch.
mysqlviz renders a graphical representation of a MySQL database from a mysqldump file. Features include speed, the ability to infer foreign key relationships if you do not have them defined, and handling of partial dumps (i.e. foreign keys to tables that are not defined within the dump).
Ackr is a very small subset of grep/ack/rak, for lazy developers. grep is a great tool, a very powerful tool, but often too powerful for simple needs. Ackr looks for a search string in all text files and in all subfolders from the working directory, is case insensitive, has no options, doesn't look into hidden folders/files, and displays the search term in a bold font.