Next: Examining Data (‘print’, ‘examine’, ‘info variables’), Previous: Editing Source files (‘edit’), Up: BASH Debugger Command Reference   [Contents][Index]


4.8 Searching source files (‘search’, ‘reverse’, ‘/.../’, ‘?..?’) ¶

There are two commands for searching through the current source file for a BASH extended pattern-matching expression.

forward bash-pattern ¶
search bash-pattern

The command ‘forward bash-pattern’ checks each line, starting with the one following the current line, for a match for bash-pattern which is an extended bash pattern-matching expression. It lists the line that is found. You can use the synonym ‘search bash-pattern’ or abbreviate the command name as fo or /pat/.

reverse bash-pattern

The command ‘reverse bash-pattern’ checks each line, starting with the one before the last line listed and going backward, for a match for bash-pattern. It lists the line that is found. You can abbreviate this command as rev or ?bash-pattern?.