IMCA-SHIPMENT-TOOL(1) General Commands Manual IMCA-SHIPMENT-TOOL(1)

imca-shipment-tool
read and write IMCA-CAT SynchWeb shipment CSV files

imca-shipment-tool [-h] sort [-hiv] [-r file] [file ...]

The imca-shipment-tool program reads and writes IMCA-CAT SynchWeb shipment CSV files according to the specified command. The currently supported command is sort which will sort the shipment by container name and then by pin position.

By default, imca-shipment-tool reads a shipment from the standard input stream, processes it according to the specified command, and writes the output to the standard output stream.

The file arguments are processed in the order given. A single dash (‘-’) represents the standard input stream, and may appear multiple times in the file list. If no file arguments are given, the standard input stream is read.

The global options are as follows:

Print a help message and exit.

The sort options are as follows:

Print a help message and exit.
Transform the file in place. The file is transformed and written to a temporary file of the same name as the file being processed but ending in .tmp, and then moved into place, replacing the original file.
Produce more verbose output.
file
Use the container name order from the reference file instead of sorting by container name.

The imca-shipment-tool program exits 0 on success, and >0 if an error occurs.

To sort shipment foo.csv to the standard output stream:

$ imca-shipment-tool sort foo.csv

To sort shipment foo.csv in place:

$ imca-shipment-tool sort -i foo.csv

To sort shipment foo.csv in place according to the order of containers in bar.csv:

$ imca-shipment-tool sort -i -r bar.csv foo.csv
July 21, 2021