savehistory

Syntax

savehistory [-all [-h] [-a | -f] outputfile

Description

Writes the history buffer to the specified outputfile.

Consecutive duplicate commands are omitted.

Use the -all option to include the consecutive duplicate commands.

Use the -h option to omit the command numbers.

Use -a to append to an existing output file. Use -f to force the overwriting of an existing output file.

For details, see clearhistory and history.

Examples

Command> savehistory myhistory;
Command> savehistory -a myhistory;