On this page |
Usage
hsc [-f] [-d] [-l compression_level] [-b block_size] [input [output]]
Options
-d
Decompress. The default behavior without this flag is to compress the input file.
-l
Compression level (default is 7).
-b
Block size in bytes (default is 10MB). You can use a 'M' or 'K' suffix to specify MB or KB. For example -b 20M
.
-f
Normally, hsc won’t overwrite existing files. This option will force hsc to run and erase any existing file.
input
The file to compress or decompress. If no input file is specified, hsc will read data from stdin and write to stdout (as a pipe).
output
The file to write to. If you omit the output name, the program compresses to the input name plus .sc
, or decompresses to the input name without .sc
.
Note
The original file will be deleted.
Examples
$ ls lamp.bgeo $ hsc lamp.bgeo $ ls lamp.bgeo.sc $ hsc -d lamp.bgeo.sc $ ls lamp.bgeo $ hsc -d < lamp.bgeo.sc | ginfo stdin