Horje
pass awk varible to bash 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
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 " "




Shell

Related
kdiff3 download linux Code Example kdiff3 download linux Code Example
how to register nuget repository powershell Code Example how to register nuget repository powershell Code Example
hydra use find password cracker Code Example hydra use find password cracker Code Example
windows cat grep equivalent Code Example windows cat grep equivalent Code Example
chmod command Code Example chmod command Code Example

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