ctags — Create a Tags File for Use with ex and vi

Synopsis

/usr/bin/ctags [-aBFtuvwx] [-f tagsfile] file... 
/usr/xpg4/bin/ctags [-aBFuvwx] [-f tagsfile] file... 

Description

The ctags command makes a tags file for ex(1) from the specified C, C++, Pascal, FORTRAN, yacc(1), and lex(1) sources. A tags file gives the locations of specified objects (in this case, functions and typedefs) in a group of files. Each line of the tags file contains the object name, the file in which it is defined, and an address specification for the object definition. Functions are searched with a pattern, typedefs with a line number. Specifiers are given in separate fields on the line, separated by space or Tab characters. Using the tags file, ex can quickly find ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.