Delen via


FindinFiles (Command Line)

Shows all occurrences of a specified string in one or more files, or in an entire project (all files). If you don't specify any items, the command assumes you are searching the files in the current project. For definitions of the command options, see Command Options in this Help system.

Syntax

ss FindinFiles <string> [items] [-H] [-I-] [-IC] [-L] [-N] [-O] [-R] [-V] [-Y] [-?]

Project Rights

You must have the Read project right to use this command.

Remarks

The FindinFiles command operates much the same way as the Grep command used in UNIX systems. Using the -L option with FindinFiles displays all occurrences of the indicated string, not only in the first file searched.

FindinFiles supports two wildcard characters, * and ?.

FindinFiles returns an exit code of 1 if there are one or more matches, 0 if there are no matches, and 100 if an error occurs.

Ordinarily, FindinFiles is case-sensitive and looks for exact matches. Use of the -IC option makes the search case-insensitive. See -I Option (Command Line).

Examples

Looks for the string "giGlobal" in all .c files:

ss FindinFiles giGlobal *.C

Looks for the string "Hello world" in the current project:

ss FindinFiles "Hello world"

See Also

Reference

-I Option (Command Line)

Other Resources

Command Line Commands
Command Options