Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Shell Scripts

Towha edited this page Mar 24, 2020 · 1 revision

Save commands in files (usually called shell scripts) for re-use.

`bash filename runs the commands saved in a file.

$@ refers to all of a shell script’s command-line arguments.

$1, $2, etc., refer to the first command-line argument, the second command-line argument, etc.

Place variables in quotes if the values might have spaces in them.

Clone this wiki locally