I have a field defined in this variable:
renamed_column
I want to replace the content of the first field with renamed_column using this command
awk '{$1=$renamed_column printf "%s%s\n", $1, $2}' <<< "$array1"
renamed_column
I want to replace the content of the first field with renamed_column using this command
awk '{$1=$renamed_column printf "%s%s\n", $1, $2}' <<< "$array1"