« first day (4252 days earlier)      last day (696 days later) » 

8:10 PM
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"
I also tried this one
awk -v v=$renamed_column '{$1=v; printf "%s%s\n", $1, $2}' <<< "$array1"
but an error happens
awk: cmd. line:1: fatal: cannot open file `10' for reading (No such file or directory)
I wrongly replaced the contents of renamed_column
How to replace an external field to change the current one?
 

« first day (4252 days earlier)      last day (696 days later) »