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

fixed two inconsistencies in the stdin part of Command-Line Programs #251

Merged
merged 1 commit into from
Mar 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 10-cmdline.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ $ python count-stdin.py < small-01.csv
A common mistake is to try to run something that reads from standard input like this:

~~~ {.bash}
$ count_stdin.py small-01.csv
$ python count_stdin.py small-01.csv
~~~

i.e., to forget the `<` character that redirect the file to standard input.
Expand Down Expand Up @@ -552,7 +552,7 @@ main()
Let's try it out:

~~~ {.bash}
$ python readings-06.py --mean small-01.csv
$ python readings-06.py --mean < small-01.csv
~~~

~~~ {.output}
Expand Down