Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few potential reasons why awk -i inplace may not be functioning properly when used within a script:

  1. The awk command may not be properly formatted or written within the script. Ensure that the command is written correctly with the proper syntax and any necessary options.

  2. The input file may not be specified correctly. Ensure that the input file is specified correctly, using either a variable or a hard-coded filename.

  3. The permissions of the input file may not allow for in-place editing. Make sure that the file has the proper permissions to be edited in-place by the awk command.

  4. There may be other commands or scripts running simultaneously that are interfering with the functionality of the awk command. Check to make sure that there are no conflicting commands or scripts running at the same time.