Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awk code not executing on windows powershell #1

Open
hariPurohit opened this issue Nov 21, 2023 · 0 comments
Open

awk code not executing on windows powershell #1

hariPurohit opened this issue Nov 21, 2023 · 0 comments

Comments

@hariPurohit
Copy link

I installed awk & gawk via their website and added the awk path in my PATH environment variable. When i try to run the code: awk -vFPAT='([^ ]*)|("[^"]+")' -f convert_pgn_to_json.awk game.pgn for the game.pgn file via Windows PowerShell terminal, no output is generated on the terminal except a generic awk info and no output .json file is also generated.

If i remove -vFPAT='([^ ]*)|("[^"]+")' from the code above, there's in-terminal output of the game moves and other info in a textual json like format. If i save that by doing this: awk -f convert_pgn_to_json.awk game.pgn > game.json then a file is generated but the output is not in a json like tree format as seen in your already existing game.json file.

What can be done in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant