AWK – String Concatenation Operator

  • Post author:
  • Post category:AWK
  • Post comments:1 Comment
AWK - String Concatenation Operator

This topic is about AWK – String Concatenation Operator.

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

In this topic we learned about AWK – String Concatenation Operator. To know more, Click Here.

This Post Has One Comment

Leave a Reply