dump_hdrkey
Purpose:
-
Write the value of a single key from the header to the standard ouput. This is useful for bash scripts.
Usage:
dump_hdrkey key filename1 filename2 ...
Options:
- -K, --dump_keys Dump list of keys ("key" argument is ignored but must be present).
- -k KEYS, --key=KEYS A key to be extracted. This argument can be entered multiple times.
- -v, --verbose Print filename, key, value if true. Otherwise only print value.
- -f, --print_fname Print filename at beginning of line.
- -l, --line_feed Print return at end of each line.
Example
dump_hdrkey -k PulseSequenceName S4_EFGRE3D efgre3d
The command returns the name of the pulse sequence on the command line. The bash code
x=`dump_hdrkey -k PulseSequenceName S4_EFGRE3D`
would set the variable x equal to the pulse sequence name.