Bash Programming Cheat Sheet Page 4

ADVERTISEMENT

Bash Programming Cheat Sheet
Page 4 of 4
do
commands
done
until [ expression ]
do
commands
done
Functions
Create a function:
fname(){
commands
}
Call it by using the following syntax: fname
Or, create a function that accepts arguments:
fname2 (arg1,arg2...argN){
commands
}
And call it with: fname2 arg1 arg2 ... argN
18/3/2553

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 4