Closed alperyilmaz closed 2 years ago
Hi! I think this is fixable. I agree that frawk should be close to other awks, where possible. I'll follow up soon.
I believe this is fixed in the commit above, which is included in frawk version 0.4.4. Let me know if you still notice problems along these lines, and thanks again for the report.
compiled 0.4.4 and issue is fixed.. thanks..
When I was running the file
info/scripts/groupby.sh
I encountered an error at the following line:When I was trying to trıubleshoot the problem I noticed that
after trying different options, I found out that in case of
frawk -f scriptfile datafile
the datafile needs to be provided with--
. Let me demonstrate the case:frawk works fine with pipe:
If we save the script as file, it woks fine in pipe
if both data and script are from file, then fails
workaround is using
--
Not sure if this is bug or a feature but still it would be great if
frawk
can be drop-in replacement for awk, by simply replacing awk with frawk in scripts , everything should work. So, it would be great if frawk can run just like awk where datafile is provided after script file.I'm using frawk version 0.4.2 in Linux.