some new commands; lfs wip

This commit is contained in:
minjaesong
2023-05-11 20:19:49 +09:00
parent 1efec13ecf
commit 803b86ce43
4 changed files with 49 additions and 3 deletions

View File

@@ -1,13 +1,14 @@
function printUsage() {
println(`Usage: gzip [-c] [-d] file
println(`Compresses or de-compresses (with -D flag) a file in-place, or to stdout if -C flag is set.
Usage: gzip [-c] [-d] file
To compress a file, replacing it with a gzipped compressed version:
gzip file.ext
To decompress a file, replacing it with the original uncompressed version:
gzip -d file.ext.gz
To compress a file specifying the output filename:
gzip -c file.ext > compressed_file.ext.gz
gzip -c file.ext | writeto compressed_file.ext.gz
To decompress a gzipped file specifying the output filename:
gzip -c -d file.ext.gz > uncompressed_file.ext`)
gzip -c -d file.ext.gz | writeto uncompressed_file.ext`)
}
if (exec_args[1] === undefined) {