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

LittleWomen example gives incorrect answers #82

Closed
gcapes opened this issue Jan 23, 2018 · 3 comments
Closed

LittleWomen example gives incorrect answers #82

gcapes opened this issue Jan 23, 2018 · 3 comments

Comments

@gcapes
Copy link
Contributor

gcapes commented Jan 23, 2018

See Software Carpentry lesson for comparison.

gcapes added a commit to gcapes/library-shell that referenced this issue Jan 23, 2018
@weaverbel
Copy link

weaverbel commented Jan 23, 2018

What is the wrong with the example in this lesson? It always works for me in workshops @gcapes

gcapes added a commit to gcapes/library-shell that referenced this issue Jan 24, 2018
@gcapes
Copy link
Contributor Author

gcapes commented Jan 24, 2018

It gives the wrong answers ;) Compare against the linked example.
In the library example:
grep $name littlewomen.txt | wc -w
grep returns the lines containing a match to $name, and wc counts the number of words in those lines.
We want to count the number of times $name occurs. PR #83 does this.

@jcoliver
Copy link
Contributor

jcoliver commented May 11, 2018

Should be fixed by LibraryCarpentry/lc-shell#13.

@libcce libcce closed this as completed May 14, 2018
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

4 participants