Egan-Long submission#6
Open
Basmirkl wants to merge 15 commits into
Open
Conversation
mdoellma
reviewed
Oct 6, 2017
| @@ -0,0 +1,28 @@ | |||
| #Gets unique combinations of gender and yearsExperience, sorting by gender and then yearsExperience | |||
Owner
There was a problem hiding this comment.
Good to see you committing often and with descriptive messages!
Please read the directions more carefully in the future.
mdoellma
reviewed
Oct 6, 2017
| @@ -0,0 +1,28 @@ | |||
| #Gets unique combinations of gender and yearsExperience, sorting by gender and then yearsExperience | |||
| echo "Unique combos of gender and yearsExp, sorted:" | |||
| cat wages.csv | grep -v "gender" | cut -d ',' -f 1,2 | sed 's/,/ /g' | sort -k1,1 -k2n | uniq | |||
Owner
There was a problem hiding this comment.
correct, but should have been written to a file, according to directions given
mdoellma
reviewed
Oct 6, 2017
| echo "Unique combos of gender and yearsExp, sorted:" | ||
| cat wages.csv | grep -v "gender" | cut -d ',' -f 1,2 | sed 's/,/ /g' | sort -k1,1 -k2n | uniq | ||
|
|
||
| #---Start of challenge 2--- |
Owner
There was a problem hiding this comment.
Correct, but returns the years schooling column as well. Please read directions fully.
mdoellma
reviewed
Oct 6, 2017
|
|
||
| #---Start of challenge 3--- | ||
| #Returns minimum wage for 12 years of education | ||
| minwage_12=$(cat wages.csv | grep -v "gender" | tr "," " " | grep -w "12" | sort -n -k4 | head -n 1 | cut -d " " -f4) |
Owner
There was a problem hiding this comment.
Close. You are finding lines with both 12 years schooling and 12 years experience. Use the cut tool to remove the years experience column before grep -w "12".
-0.25 pts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.