awk String Concatenation


Example

String concatenation is done simply by writing expressions next to one another without any operator. For example:

BEGIN {
   user = "root"
   print "Hello "user "!"
}

will print: Hello root!

Note that expressions do not have to be separated by whitespace.