Hello, I have a problem that I need to solve. I have a file that should be inserted exactly one column from another file, I am trying it as follows:
cat $1 | cut -d ',' -f2 | tr "/" "-" | awk -F "-" '{print $2"-"$1"-"$3}' > temp.txt
cat $1 | sed 's/[0-3][0-9]\/[0-1][0-9]\/[0-9][0-9][0-9][0-9]/temp.txt/'
Of which temp.txt is the file that has the updated column. The problem is that instead of replacing the specified column, it is replacing it with the filename "temp.txt". Any suggestions for fixing this? Or another way to do it? Thanks!