File: test.fqtest

package info (click to toggle)
fq 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 106,624 kB
  • sloc: xml: 2,835; makefile: 250; sh: 241; exp: 57; ansic: 21
file content (22 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/hello:
hello
$ fq -d bits '., .size, .[8:-8], scan("he|lo")' hello
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|68 65 6c 6c 6f 0a|                             |hello.|         |.: raw bits 0x0-0x6 (6)
48
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|   65 6c 6c 6f                                 | ello           |.: raw bits 0x1-0x5 (4)
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|68 65                                          |he              |.: raw bits 0x0-0x2 (2)
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|         6c 6f                                 |   lo           |.: raw bits 0x3-0x5 (2)
$ fq -d bytes '., .size, .[1:-1], scan("he|lo")' hello
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|68 65 6c 6c 6f 0a|                             |hello.|         |.: raw bits 0x0-0x6 (6)
6
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|   65 6c 6c 6f                                 | ello           |.: raw bits 0x1-0x5 (4)
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|68 65                                          |he              |.: raw bits 0x0-0x2 (2)
   |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|         6c 6f                                 |   lo           |.: raw bits 0x3-0x5 (2)