Benutzer-Werkzeuge

Webseiten-Werkzeuge


seq

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

seq [2016-04-12 22:49:57] – Externe Bearbeitung 127.0.0.1seq [2020-04-29 09:34:41] (aktuell) – [seq] manfred
Zeile 1: Zeile 1:
 +====== seq ======
 +
 +Es gibt den "Klassiker" **seq** und es gibt noch die "Nr. 2" **seq2**.
 +
 +
 +===== seq =====
 +
 +  * [[https://www.gnu.org/software/coreutils/manual/html_node/seq-invocation.html]]
 +  * [[https://www.howtoforge.com/linux-seq-command/]]
 +  * [[https://www.geeksforgeeks.org/seq-command-in-linux-with-examples/]]
 +
 +  # seq 0 1 10
 +  0
 +  1
 +  2
 +  3
 +  4
 +  5
 +  6
 +  7
 +  8
 +  9
 +  10
 +
 +  # seq 64 16 256
 +  64
 +  80
 +  96
 +  112
 +  128
 +  144
 +  160
 +  176
 +  192
 +  208
 +  224
 +  240
 +  256
 +
 +  # seq -w 1 99
 +  01
 +  02
 +  03
 +  04
 +  05
 +  06
 +  07
 +  08
 +  09
 +  10
 +  11
 +
 +
 +===== seq2 =====
 +
 +  # seq2 -s 0 -i 1 -e 10
 +  0
 +  1
 +  2
 +  3
 +  4
 +  5
 +  6
 +  7
 +  8
 +  9
 +  10
 +
 +  # seq2 -s 64 -i 16 -e 256
 +  64
 +  80
 +  96
 +  112
 +  128
 +  144
 +  160
 +  176
 +  192
 +  208
 +  224
 +  240
 +  256
 +
 +  # seq2 -f 2 -l -s -20 -e 200 -i 13 -t "counting " -o /tmp/blah
 +  
 +  # cat /tmp/blah
 +       counting  -20
 +       counting  -7
 +       counting  06
 +       counting  19
 +       counting  32
 +       counting  45
 +       counting  58
 +       counting  71
 +       counting  84
 +       counting  97
 +       counting  110
 +       counting  123
 +       counting  136
 +       counting  149
 +       counting  162
 +       counting  175
 +       counting  188
 +