By default, cueprint reports a default set of disc information, and a default set of information for each track on the disc. With options, the report can be restricted to a specific track, and the presentation of the disc and track information can be extensively customized using printf(3)-style format strings (referred to here as 'templates' to avoid confusion with the concept of file format). All characters in a template are reproduced as-is in the output except for conversions (which begin with '%') and escapes (which begin with '\').
If no filenames are specified, cueprint reads from standard input, and an input format option must be specified. If one or more filenames is provided, but the input format option is not specified, the input format will be guessed based on each file's suffix (e.g., .cue or .toc). This heuristic is case-insensitive.
flags may be zero or more of the following:
|+||place sign before numbers|
|' ' (space)||place a blank space before a positive number|
|0||pad numbers with zeroes|
width is the minimum field width. precision is the maximum width for strings. type is a single character which specifies the conversion type --- apart from %, it is the only mandatory part of the conversion.
The available conversion types are presented in the table below; disc conversion types are presented in the left half of the table, and track conversion types in the right half. Disc template expansion characters are valid for both disc and track templates.
|A||album arranger||a||track arranger|
|C||album composer||c||track composer|
|G||album genre||g||track genre|
|M||album message||m||track message|
|N||number of tracks||n||track number|
|P||album performer||p||track performer|
|T||album title||t||track title|
|U||album UPC/EAN||u||track ISRC (CD-TEXT)|
% cueprint album.cue
To print the number of tracks in a CUE file: