Awk CLI
Table of Contents
Save modifications in place howto
There are two options:
Use
gawk
only providedinplace
extension:gawk -i inplace '{ gsub(/foo/, "bar") }; { print }' file1 file2 file3
- Use a temp file manually:
awk '{ print }' file > tmp && mv tmp file