I have a 4-column CSV file, data.csv using "@" as the separator, e.g.:
1@fish@ocean@likes to swim in the ocean
2@whale@ocean@likes to swim in the ocean
To edit just the 4th column, I used this command:
awk -F "@*" '{print $4}' data.csv > temp.csv
Then I ran some additional scripts to modify temp.csv.
Now, I need to return the contents of temp.csv to data.csv, replacing everything in the 4th column of data.csv.
How can I replace the contents of the 4th column of data.csv with the edited lines in temp.csv?