Horje
bash how to pass shell variables to awk Code Example
bash how to pass shell variables to awk
# Example usage (one variable):
variable="one shell\nvariable"
awk -v var="$variable" 'BEGIN {print var}'
--> one shell
--> variable

# Example usage (multiple variables):
var1="multiple"
var2="shell"
var3="variables"
awk -v a="$var1" -v b="$var2" -v c="$var3" 'BEGIN {print a,b,c}'
--> multiple shell variables




Shell

Related
docker manjaro Code Example docker manjaro Code Example
the current branch has no upstream branch error Code Example the current branch has no upstream branch error Code Example
wsl folder linux windows access Code Example wsl folder linux windows access Code Example
install helm Code Example install helm Code Example
adobe connect in ubuntu Code Example adobe connect in ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12