mirror of
https://github.com/wader/fq.git
synced 2024-12-25 14:23:18 +03:00
377af133e0
Make cwd for a test script the directory where the script is. Use relative paths
43 lines
3.8 KiB
Plaintext
43 lines
3.8 KiB
Plaintext
# echo hello > test
|
|
# tar test c > test.tar
|
|
$ fq -d tar dv test.tar
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: test.tar (tar) 0x0-0x27ff.7 (10240)
|
|
| | | files[0:1]: 0x0-0x3ff.7 (1024)
|
|
| | | [0]{}: file 0x0-0x3ff.7 (1024)
|
|
0x0000|74 65 73 74 00 00 00 00 00 00 00 00 00 00 00 00|test............| name: "test" 0x0-0x63.7 (100)
|
|
* |until 0x63.7 (100) | |
|
|
0x0060| 30 30 30 36 34 34 20 00 | 000644 . | mode: 420 ("000644 ") 0x64-0x6b.7 (8)
|
|
0x0060| 30 30 30 37| 0007| uid: 501 ("000765 ") 0x6c-0x73.7 (8)
|
|
0x0070|36 35 20 00 |65 . |
|
|
0x0070| 30 30 30 30 32 34 20 00 | 000024 . | gid: 20 ("000024 ") 0x74-0x7b.7 (8)
|
|
0x0070| 30 30 30 30| 0000| size: 6 ("00000000006 ") 0x7c-0x87.7 (12)
|
|
0x0080|30 30 30 30 30 30 36 20 |0000006 |
|
|
0x0080| 31 34 31 33 33 36 32 35| 14133625| mtime: 1634675538 ("14133625522 ") (2021-10-19T20:32:18Z) 0x88-0x93.7 (12)
|
|
0x0090|35 32 32 20 |522 |
|
|
0x0090| 30 31 32 32 32 34 00 20 | 012224. | chksum: 5268 ("012224") 0x94-0x9b.7 (8)
|
|
0x0090| 30 | 0 | typeflag: "0" 0x9c-0x9c.7 (1)
|
|
0x0090| 00 00 00| ...| linkname: "" 0x9d-0x100.7 (100)
|
|
0x00a0|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
|
* |until 0x100.7 (100) | |
|
|
0x0100| 75 73 74 61 72 00 | ustar. | magic: "ustar" (valid) 0x101-0x106.7 (6)
|
|
0x0100| 30 30 | 00 | version: 0 ("00") 0x107-0x108.7 (2)
|
|
0x0100| 77 61 64 65 72 00 00| wader..| uname: "wader" 0x109-0x128.7 (32)
|
|
0x0110|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
|
0x0120|00 00 00 00 00 00 00 00 00 |......... |
|
|
0x0120| 73 74 61 66 66 00 00| staff..| gname: "staff" 0x129-0x148.7 (32)
|
|
0x0130|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
|
0x0140|00 00 00 00 00 00 00 00 00 |......... |
|
|
0x0140| 30 30 30 30 30 30 20| 000000 | devmajor: 0 ("000000 ") 0x149-0x150.7 (8)
|
|
0x0150|00 |. |
|
|
0x0150| 30 30 30 30 30 30 20 00 | 000000 . | devminor: 0 ("000000 ") 0x151-0x158.7 (8)
|
|
0x0150| 00 00 00 00 00 00 00| .......| prefix: "" 0x159-0x1f3.7 (155)
|
|
0x0160|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
|
* |until 0x1f3.7 (155) | |
|
|
0x01f0| 00 00 00 00 00 00 00 00 00 00 00 00| ............| header_block_padding: raw bits (all zero) 0x1f4-0x1ff.7 (12)
|
|
0x0200|68 65 6c 6c 6f 0a |hello. | data: raw bits 0x200-0x205.7 (6)
|
|
0x0200| 00 00 00 00 00 00 00 00 00 00| ..........| data_block_padding: raw bits (all zero) 0x206-0x3ff.7 (506)
|
|
0x0210|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
|
* |until 0x3ff.7 (506) | |
|
|
0x0400|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................| end_marker: raw bits 0x400-0x27ff.7 (9216)
|
|
* |until 0x27ff.7 (end) (9216) | |
|