mirror of
https://github.com/vbatts/tar-split.git
synced 2024-11-22 16:15:39 +00:00
cmd/tar-split: adding to the README
This commit is contained in:
parent
de37d1755a
commit
f465e4720e
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
## tar-split utility
|
# tar-split utility
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
go get -u github.com/vbatts/tar-split/cmd/tar-split
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -9,14 +12,14 @@
|
||||||
$ sha256sum archive.tar
|
$ sha256sum archive.tar
|
||||||
d734a748db93ec873392470510b8a1c88929abd8fae2540dc43d5b26f7537868 archive.tar
|
d734a748db93ec873392470510b8a1c88929abd8fae2540dc43d5b26f7537868 archive.tar
|
||||||
$ mkdir ./x
|
$ mkdir ./x
|
||||||
$ tar-split d --output tar-data.json.gz ./archive.tar | tar -C ./x -x
|
$ tar-split disasm --output tar-data.json.gz ./archive.tar | tar -C ./x -x
|
||||||
time="2015-07-20T15:45:04-04:00" level=info msg="created tar-data.json.gz from ./archive.tar (read 204800 bytes)"
|
time="2015-07-20T15:45:04-04:00" level=info msg="created tar-data.json.gz from ./archive.tar (read 204800 bytes)"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Assembly
|
### Assembly
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ tar-split a --output new.tar --input ./tar-data.json.gz --path ./x/
|
$ tar-split asm --output new.tar --input ./tar-data.json.gz --path ./x/
|
||||||
INFO[0000] created new.tar from ./x/ and ./tar-data.json.gz (wrote 204800 bytes)
|
INFO[0000] created new.tar from ./x/ and ./tar-data.json.gz (wrote 204800 bytes)
|
||||||
$ sha256sum new.tar
|
$ sha256sum new.tar
|
||||||
d734a748db93ec873392470510b8a1c88929abd8fae2540dc43d5b26f7537868 new.tar
|
d734a748db93ec873392470510b8a1c88929abd8fae2540dc43d5b26f7537868 new.tar
|
||||||
|
|
Loading…
Reference in a new issue