Open main menu

CDOT Wiki β

Changes

Tutorial10: Shell Scripting - Part 1

27 bytes added, 08:56, 15 July 2020
Using Variables in Shell Scripts
A positional parameter is a variable within a shell program; its value is set from an argument specified<br>on the command line that invokes the program.
Positional parameters are numbered and are referred to <br>with a preceding "'''$'''": '''$1''''''$2''''''$3''', and so on.
There are a few ways to assign values as positional parameters:
13,420
edits