How to Concatnate using AWK in UNIX

I was working on a editing a file using AWK, and I want to concat a string to the output in each line, so I came up with this


filename.out contains:
abc def ;
ghi jkl ;
asd fgh ;


awk '{print $2 "="}' < filename.out

Output:
def=
jkl=
fgh=


Don't forget to use the space.


Related Posts


No comments: