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

Add support for reading CSV from shell stdin via the - file input #38

Open
nickdos opened this issue Sep 28, 2023 · 0 comments
Open

Add support for reading CSV from shell stdin via the - file input #38

nickdos opened this issue Sep 28, 2023 · 0 comments

Comments

@nickdos
Copy link

nickdos commented Sep 28, 2023

I have a shell script that tests the conversion of JSON to CSV that I'd like to use with csvlint but I don't want to force the script to save (and later delete) an actual file. Rather I'd like to pass the CSV in via stdin in the same way most command-line utilities work.

I tried:

cat file.csv | csvline -

but it throws an error file '-' does not exist.

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