CONTENT
  • CHANGES
Szukaj
counter

#top seq


seq - print a sequence of numbers

Powiązane:

SYNOPSIS
seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST


DESCRIPTION
Print numbers from FIRST to LAST, in steps of INCREMENT.


OPTIONS
-f, --format=FORMAT
use printf style floating-point FORMAT (default: %g)

-s, --separator=STRING
use STRING to separate numbers (default: \n)

-w, --equal-width
equalize width by padding with leading zeroes

--help display this help and exit

--version
output version information and exit

If FIRST or INCREMENT is omitted, it defaults to 1. That is, an omitted INCREMENT defaults to 1 even when LAST is smaller than FIRST. FIRST, INCREMENT, and LAST are interpreted as floating point values. INCREMENT is usually positive if FIRST is smaller than LAST, and INCREMENT is usually negative if FIRST is greater than LAST. When given, the FORMAT argument must contain exactly one of the printf-style, floating point output formats %e, %f, %g



EXAMPLES
seq 1 20 | tr  '\n' ' '; echo
Rezultat:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

seq -f '%02g' 0 20 | tr  '\n' ' '; echo
Rezultat:
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20




Zmodyfikowany ostatnio: 2014/05/15 15:01:36 (9 lat temu), textsize: 1,78 kB, htmlsize: 2,49 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników