Re: Difference beetwen awk and gawk?
- From: Bill Marcum <marcumbill@xxxxxxxxxxxxx>
- Date: Wed, 19 Dec 2007 15:28:20 -0500
On 2007-12-04, Dawid Murga³a <murgala@xxxxxxxxx> wrote:
Maybe when you converted your script from gawk to awk, you also
Hi,
I'm new to awk, I wrote a simple script using gawk, then change it to awk:
awk '/[0-9]+ [a-z0-9]+/{printf " \047%s\047)\n", $1 > "text.txt"}END{printf "END\n" > "test.txt"}' afile.dat
afile.dat :
123456 abc
111111 abcd
It works with gawk, but in awk returns an error:
.wk: 0602-533 Cannot find or open file afile.dat
The source line number is 1.
Syntax Error The source line is 1.
Any ideas? afile.dat has read rights.
converted (or failed to convert) the line endings, and you get the error
message because there is no file named "afile.dat^M"
.
- References:
- Difference beetwen awk and gawk?
- From: Dawid Murgała
- Difference beetwen awk and gawk?
- Prev by Date: Re: Bash script timing out
- Next by Date: Re: Bash script timing out
- Previous by thread: Re: Difference beetwen awk and gawk?
- Next by thread: mawk to gawk or ?
- Index(es):
Relevant Pages
|