Table of Contents
unix Keyword 2
here string
Definition
The symbol for a here string is «< . A here string puts whatever input you want into a command. Like bc «< 2+2 sends 2+2 into the calculator and it will come back as 4. So it does the operation in one step instead of going into the calculator and typing 2+2 or whatever you want to solve.
References
* Notes from when we talked about here strings and the binary calculator.
unix Keyword 2 Phase 2
variable expansion
Definition
Variable expansions are defined by lines using ':=' It does not contain any references to other variables; it contains their values as of the time this variable was defined.
References
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
- Reference 2
- Reference 3
Demonstration
Demonstration of the indicated keyword.
#include <stdio.h> int main() { int x = 20; printf("The value of x is %d\n", x); }
The output of this is The value of x is 20