Using Command Prompt Instructions Effectively
Running Shell Scripts
When you run a shell script, you have two primary options:
Variables: Local vs. Environment
Special Variables
Script Arguments
When executing a script with arguments like ./script.sh val1 val2, val1 and val2 are passed as positional parameters $1 and $2 respectively.
Exit Status
领英推荐
Testing with test
File Tests
Arithmetic Tests
Use one of the following operators:
Variable Testing
Command Substitution
Store the result of a command in a variable using: