Open main menu

CDOT Wiki β

Changes

Tutorial10: Shell Scripting - Part 1

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