I am learning awk and I would like to know if there is an option to write changes to file, similar to sed where I would use -i option
awk
sed
-i
awk '{awk code}' file | tee file
the tee command take place and executed after the awk command is finished due to the |.
tee
|