awk Error Messages
Pattern scanning and text processing language.All awk pages
- awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attemptedgawk aborts with division by zero attempted when a divisor is 0 or empty, such as a blank field, a header line or an unset counter. Test the divisor first.
- awk: cmd. line:1: syntax errorgawk prints cmd. line:1 syntax error when it cannot parse the program: an action outside braces, a missing brace or quote, or shell quoting that broke it.
- awk: fatal: cannot open file `file' for reading: No such file or directorygawk stops with cannot open file for reading when an input file is missing, or when an unquoted name or an assignment with spaces became a file name too.
- awk: warning: escape sequence `\.' treated as plain `.'gawk warns escape sequence treated as plain when a regex written as a string loses its backslash, as with -F and a dot. Use -F'[.]' or a /regex/ constant.