Examples
The following examples show @ commands and assume n = 4.
|
Expression |
Value of $x |
|
|
1 |
|
|
0 |
|
|
16 |
|
|
1 |
|
|
0 |
|
|
1 |
The following examples show the first line of if or while statements.
|
Expression |
Meaning |
|
|
While there are arguments ... |
|
|
If the first word is “Fri” ... |
|
|
If the file doesn’t end with
|
|
|
If the first argument is |
|
|
If the first argument is a plain file ... |
|
|
If |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access