exstr — Extract Strings from Source Files

Synopsis

/usr/bin/exstr filename... 
/usr/bin/exstr -e filename... 
/usr/bin/exstr -r [-d] filename... 

Description

Use the exstr command to extract strings from C-language source files and replace them by calls to the message retrieval function (see gettxt(3C)). This command extracts all character strings surrounded by double quotes, not just strings used as arguments to the printf command or the printf routine. In the first form, exstr finds all strings in the source files and writes them on the standard output. Each string is preceded by the source file name and a colon.

Use the following steps to extract strings from a source file:

1.
Use exstr -e to extract a list of strings and save it in a ...

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.