Forrest logo
back to the awk tool

awk:ai:9a3ab

Edit a file in place with awk by replacing 'pattern' with 'replacement'
$ awk -i inplace '/pattern/{replacement}' file
try on your machine

Edit a file in place with awk by replacing 'pattern' with 'replacement'

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how to edit a file in place with awk?
back to the awk tool