Common · Let commands collaborate
seq: Generate a sequence of numbers
Syntax
seq [-s delimiter] [start point [step size]] end pointOptions
-s- Output delimiter
Examples
seq 1 2 9Usage and sandbox support
The teaching subset supports integers, up to 1000 items.
Hands-on exercises
- Generate a sequence from 1 to 5Everyday
- Generate descending sequenceAdvanced
Related commands
echoOutput a piece of textprintfOutput text according to formatteeOutput and save pipeline contentsxargsConvert input into command parametersexportSet environment variablesenvView environment variablesprintenvOutput the value of environment variableunsetRemove variableshistoryView command historyclearClear the terminal displaytrueReturn success statusfalseReturn failure statussleepPause for specified timealiasSet command aliasunaliasRemove command aliassourceRead script in current ShellreadRead variables from inputbashRun the Bash scriptshRun the POSIX Shell scriptcommandControl command lookupjobsView current Shell jobsbgResume background jobfgResume foreground jobwaitWait for child process to endnohupIgnore hangup signal and runtimeoutLimit command running timewatchDisplay command results periodicallytimeMeasure run timeulimitView or set resource limitssetSet Shell behaviortrapHandle exit or signaltmuxManage terminal sessionsscreenKeep terminal session