Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

468 bytes added, 07:59, 15 July 2020
Using Variables in Shell Scripts
:*Use the '''set''' command with the values as argument after the set command
:*Run a shell script containing arguments
 
 
Command line parameters are referred to as $0…$9
The positional parameter $0 refers to either the name of shell where command was issued, or name of shell script being executed.
 
If using positional parameters greater than 9, then you need to include number within braces.�
Examples:��'''echo ${10}'''�, '''ls ${23}'''
 
The '''shift''' command can be used with positional parameters to shift positional parameters to the left by one or more positions.�
===Using Control Flow Statements in Shell Scripts===
13,420
edits

Navigation menu