tacren - tpcclib 0.8.0 © 2023 by Turku PET Centre

Rename the specified TAC(s) inside a TAC file.
 
Usage: tacren [options] file tac_id newname
 
Enter the number or (partial) name of the TAC to be renamed.
Set tac_id to 0, if all TAC names are to be changed.
 
For newname, use '_' to separate for example hemisphere or other position
from the target name. Character '#' is replaced by sequential number.
Character '@' specifies that previous partial name is to be kept.
 
Note that not all TAC file formats can store TAC names.
At least PMOD and DFT formats support TAC names.
 
Options:
 -dry
     Nothing is actually renamed, application only lists which TAC(s) would
     be renamed and how.
 -add=<field_nr>
     New field name is added to given position; enter large number to add
     it to the end.
 -h, --help
     Display usage information on standard output and exit.
 -v, --version
     Display version and compile information on standard output and exit.
 -d[n], --debug[=n], --verbose[=n]
     Set the level (n) of debugging messages and listings.
 -q, --quiet
     Suppress displaying normal results on standard output.
 -s, --silent
     Suppress displaying anything except errors.
 
Example 1: Rename TAC number 3 to 'str_dx'
     tacren a123.tac 3 str_dx
 
Example 2: Rename all TACs to TACx where x is the number of the TAC
     tacren a234.tac 0 TAC#
 
Example 3: Rename name field 'sn' to 'sin'
     tacren a345.tac sn @_sin_@
 
Example 4: Add TAC nr as the first name field, and keep the next fields intact
     tacren -add=1 a456.tac 0 #_@_@_@
 
See also: taclist, tacnames, tacadd, tacformat, tacsort, tacunit, tacdel
 
Keywords: TAC, tool, rename, simulation