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

Discussion forum #489

Open
kpym opened this issue Apr 15, 2023 · 4 comments
Open

Discussion forum #489

kpym opened this issue Apr 15, 2023 · 4 comments

Comments

@kpym
Copy link

kpym commented Apr 15, 2023

Is it possible to enable "Discussions" for this repo? That way newbies like me can ask stupid questions like "How can I loop over all .json files?" IMO, the issue tracker is not the right place for this.

@odino
Copy link
Collaborator

odino commented Apr 17, 2023 via email

@odino
Copy link
Collaborator

odino commented Apr 17, 2023

Also... 😊

How can I loop over all .json files?

➜  /tmp cd loop-json 
➜  loop-json echo "{}" > x.json
➜  loop-json echo "null" > y.json
➜  loop-json echo "" > z.txt
➜  loop-json abs
Hello alex, welcome to the ABS (2.6.0) programming language!
Type 'quit' when you're done, 'help' if you get lost!
⧐  for file in `ls *.json`.lines() { echo("${file}: %s", `cat ${file}`) }
x.json: {}
y.json: null
⧐  

@kpym
Copy link
Author

kpym commented Apr 17, 2023

I understand. Thanks for considering my request.

@kpym kpym closed this as completed Apr 17, 2023
@kpym
Copy link
Author

kpym commented Apr 22, 2023

I realized that this program will not run on Windows because ls is not recognized. So how can we loop over files independent of the OS?

@kpym kpym reopened this Apr 22, 2023
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

2 participants