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
just a little hack that works
echo "$(awk '{awk code}' file)" > file