Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: tract Up: Code management Previous: sau

Subsections



squiz

Search for and examine AIPS++ sources.

Synopsis

squiz [-c category] [-e|-E expression] [-l] [-F] [-p package] [file]

Description

squiz searches for AIPS++ source files and optionally searches for strings inside the files it finds. Wildcarding is allowed in the file specification and the search is case insensitive by default.

If no file is specified the default is to search for (i.e. list) all files.

Options

-c category
Restrict the search to a certain category: The default is to search everything.

-e expression
Perform a case insensitive search for the specified expression in all selected files. grep-type regular expressions are allowed. See also the -l option.

-E expression
Case sensitive version of the -e option.

-F
Do a case sensitive search for the files named.

-l
Only list the names of files that contain a match to the expression as specified in -e.

-p package
Restrict the search to a particular package (see §1.1.1). The default is to search all packages.

Whitespace is allowed between short-form options and their arguments.

Diagnostics

Status return values
0: success
1: initialization error

Examples

The following command will search for all files in and below the implement directory of the aips package (that is code/aips/implement/...) whose name contains the string ``aips'' (case insensitive) and will search inside each file that it finds looking for the string ``debug'' (case insensitive).

   squiz -c imp -e debug -p aips "*aips*"

The following simply counts the number of files in the doc package:

   squiz -p doc | wc -l

Finally, this example will list out all files that contain the expression ``plonk'':

   squiz -l -e plonk

See also

The unix manual page for grep(1).
§1.1.1, AIPS++ directory structure.

Author

Original: 1994/07/28 by Mark Calabretta, ATNF
Modified: 1997/05/30 by Pat Murphy, NRAO


next up previous contents index
Next: tract Up: Code management Previous: sau   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15