awk make change in file instead redirections code example
Example: save awk to file
#To store awk output in same command a temporary file muste be used.
awk '(PROGRAM)' file > tmp_file && mv tmp_file file
#To store awk output in same command a temporary file muste be used.
awk '(PROGRAM)' file > tmp_file && mv tmp_file file