bcut
Functions
-
int main(int argc, char *argv[])
bcut [ option ] [ infile ]
-s int
start number \((0 \le S)\)
-e int
end number \((S \le E)\)
-l int
block length \((1 \le L)\)
-m int
block order \((0 \le L-1)\)
+type char
data type
cchar (1byte)Cunsigned char (1byte)sshort (2byte)Sunsigned short (2byte)hint (3byte)Hunsigned int (3byte)iint (4byte)Iunsigned int (4byte)llong (8byte)Lunsigned long (8byte)ffloat (4byte)ddouble (8byte)elong double (16byte)
infile str
data sequence
stdout
cut data sequence
The input of this command is
\[ \begin{array}{ccc} \underbrace{x(0), \; \ldots, \; x(L - 1)}_{x_0}, & \underbrace{x(L), \; \ldots, \; x(2L - 1)}_{x_1}, & \ldots, \end{array} \]and the output is\[ \begin{array}{cccc} x_S, & x_{S+1}, & \ldots, & x_E, \end{array} \]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