AWK - String Concatenation Operator


Advertisements

Space is a string concatenation operator that merges two strings. The following example demonstrates this −

Example

[jerry]$ awk 'BEGIN { str1 = "Hello, "; str2 = "World"; str3 = str1 str2; print str3 }'

Output

On executing this code, you get the following result −

Hello, World
awk_operators.htm
Advertisements