bcut

Functions

int main(int argc, char *argv[])

bcut [ option ] [ infile ]

  • -s int

    • start number (0S)

  • -e int

    • end number (SE)

  • -l int

    • block length (1L)

  • -m int

    • block order (0L1)

  • +type char

    • data type

      • c char (1byte)

      • C unsigned char (1byte)

      • s short (2byte)

      • S unsigned short (2byte)

      • h int (3byte)

      • H unsigned int (3byte)

      • i int (4byte)

      • I unsigned int (4byte)

      • l long (8byte)

      • L unsigned long (8byte)

      • f float (4byte)

      • d double (8byte)

      • e long double (16byte)

  • infile str

    • data sequence

  • stdout

    • cut data sequence

The input of this command is

x(0),,x(L1)x0,x(L),,x(2L1)x1,,
and the output is
xS,xS+1,,xE,
where L is the block length.

ramp -l 7 | bcut +d -s 3 -e 5 | x2x +da
# 3, 4, 5

ramp -l 7 | bcut +d -l 2 -s 1 -e 1 | x2x +da
# 2, 3

See also

bcp merge