Produces a sequence of numbers for a loop.
seq
e.g.
for i in $(seq 5000) ; do echo $i ; done
Run script.sh with debugging.
bash -x script.sh
Reassigns the output of a command as an argument to another command.
command substitution
Run script.sh, which is not executable, by spawning a new shell to run the script in.
sh script.sh
Path to the system’s default shell.
/bin/sh which is often a symbolic link to /bin/bash
Line that identifies the script’s interpreter.
The shebang #! line, which is always the first line in a script.
e.g.
#! /bin/sh
If left out, the script runs in the system’s default shell.
Get a script’s return value.
$?