|
|||
The 'reveal' user manual.Namereveal - replaces tags in a file by text or file content.Synopsisreveal [-r|--reveal] [options] <tags description file> [<source file> [<destination file>]]reveal --help reveal --version Descriptionreveal parses a file and replaces all tags in it with a text or the content of a file.The tags description file is a file which contains the tag names and their values. There are 2 formats possible for this file. In the first format, for each line, the first column contents the tag name, and then come, separated by one or more tabulation, the corresponding tag value. If the first character after the tabulation is a &, the tag would be replaced by the following text. If it is a %, the following text is the name of the file which content will replace the tag. In the second format, the first non-empty line contains the tag names, separated by one or more tabulations. The following lines contain the tag values. Each line must have as much tag values as tag names in the first line. For each line, the input file will be written to the output file with them tags replaced by the given value, following the same rule as before (& for a text, % for a file). If you put a # at the beginning of a line, or directly after a tabulation, this # and the rest of the line would be ignored. The source file is the file where the tags are replaced before written to the ouput file. If none given, the standard input is used. A tag is constituted by letters, digit and/or the _ character, and is case sensitive. Each tag in the source file must have an entry in the tag description file, unless it's a special tag. Here are this special tags :
In the tag description file, you can't define a tag beginning with the _ character, except for the 4 first special tags listed before. The destination file is the file in which the input file is written, with its tag replaced. If none given, then the standard output is used. Options can take following values :
Return valuesreveal returns following values upon completion :
Reporting bugsReport bugs to Claude SIMON (csimon@webmails.com).Authorreveal was developed by Claude SIMON (csimon@webmails.com).Standard conformance |
|||
|