Awk command add value/symbol beginning or end of line

Add any value or symbol beginning of the line

awk '{print $9}' | awk '{print "-"$0}'  file_name


Add any value or symbol end of the line
awk '{print $9}' | awk '{print $0"-"}'  file_name


Add any value beginning and end of line
awk '{print $9}' | awk '{print "-"$0"-"}' file_name

Post a Comment

Mới hơn Cũ hơn