otlgrep

  1. Summary

      This is an outline-aware grep utility. It returns an outline that contains only branches that satisfy the regular expression. This is useful for quickly extracting context-sensitive information from an outline.

  1. Usage
       Usage:
       otlgrep.py options pattern file...
       Options
       	-i            Ignore case
       	--version     Print version (RCS) information.
       	--help        Show help.
       file... is zero or more files to search. Wildcards are supported.
       		  if no file is specified, input is expected on stdin.
       output is on STDOUT 
  1. Examples

      An otlgrep of the outline below yields a new outline that contains only those branches that match the grep.

    1. Before the otlgrep
      1. Pets
      2. Indoor
        1. Cats
          1. Sophia
          2. Hillary
        2. Rats
          1. Finley
          2. Oliver
        3. Dogs
          1. Kirby
      3. Outdoor
        1. Dogs
          1. Kirby
          2. Hoover
        2. Goats
          1. Primrose
          2. Joey
    2. After otlgrep Sophia pets.otl
      1. Indoor
        1. Cats
          1. Sophia
    3. After otlgrep Dogs pets.otl
      1. Indoor
        1. Dogs
          1. Kirby
      2. Outdoor
        1. Dogs
          1. Kirby
          2. Hoover
  1. Downloads
    1. Download ZIP
    2. Download tgz
  1. License

      This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License.

      This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

      You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

  1. Credits
       Copyright © 2006 Noel Henson					Updated: 2006-02-19
       noel@noels-lab.com