- First Argument: $1
- Second Argument: $2
- Third Argument: $3
Example:
- Terminal# ./script alpha bravo charlie
- Variables: $1=='alpha'; $2=='bravo'; $3=='charlie'
Script Example
#!/bin/bash
echo "the $1 eats a $2 every time there is a $3"
echo "bye =)"
- Terminal# ./script dog bone moose
- Output: the dog eats a bone every time there is a moose
bye =)
No comments:
Post a Comment