using variable with awk bash code example

Example 1: 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

Example 2: pass awk varible to bash

x=10
y=30
text="some_texts"
awk -v a=$x -v b=$y -v c="$text" 'BEGIN {ans=a+b; print c " " ans}'
					#	for text it need " "