Linux commands refer to seq
Seq generates an integer sequence. Usage: 1. If seq 5 is followed by only one numeric parameter, the number indicates the number of termination. The start number is 1 by default. The step size is 1.2, and seq 4 8 is followed by two numeric parameters, the first digit indicates the start number, and the second digit indicates the end number. The step size is the default value of 1. 3. seq 10 5 40 is followed by three numeric parameters. The first digit indicates the Starting number, the second digit indicates the step size, and the third digit indicates the ending number.
In the preceding three follow-up parameters, if the number of termination is smaller than the Starting number, nothing is returned. If the parameter is not a floating point number, an error message is returned.
The-s parameter specifies the delimiter. The default Delimiter is/n. Seq-s --- All numbers in the range of 2 to 5 W. Fill the position of the unfilled digits with 0. Seq-w 1 10 200-f % g specified format, default is % g, valid inputs include % e and % f. % e seems to be calculated using scientific notation. % f can specify numbers with higher precision and length, and can specify accuracy, the specific rules are unclear. For example, % 1.f, %. 1f