[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
awk 5.2.2 - Inplace Syntax Error When File Contains Dot
From: |
Douglas Charles Duckworth |
Subject: |
awk 5.2.2 - Inplace Syntax Error When File Contains Dot |
Date: |
Thu, 19 Oct 2023 20:17:43 +0000 |
Hi,
awk can parse a file and print results to stdout fine but when I try the
inplace module it fails if the file contains dot.
My version:
[~]$ gawk -V
GNU Awk 5.2.2, API 3.2, PMA Avon 8-g1
Copyright (C) 1989, 1991-2023 Free Software Foundation.
The file:
[~]$ cat file
test data
whatis
container.sif
Success:
[~]$ awk '1;/whatis/{ print " "; print "module use /cm/local/modulefiles"}' file
test data
whatis
module use /cm/local/modulefiles
container.sif
Failure:
[~]$ gawk -i file '1;/whatis/{ print " "; print "module use
/cm/local/modulefiles"}'
gawk: file:5: container.sifgawk: file:5: ^ syntax error
This seems to occur whenever the input file contains "."
- awk 5.2.2 - Inplace Syntax Error When File Contains Dot,
Douglas Charles Duckworth <=