karlin-koczwara submission#8
Open
mkarlin1 wants to merge 10 commits into
Open
Conversation
mdoellma
reviewed
Oct 6, 2017
| @@ -0,0 +1,7 @@ | |||
| # the effect of graduating college on the minimum wage | |||
Owner
There was a problem hiding this comment.
Work on writing more descriptive commit messages and comments within the code. This will help in more complex future collaborations.
mdoellma
reviewed
Oct 6, 2017
| val1=$(grep -v "gender" wages.csv | tr "," " " | cut -f 3,4 -d " " | grep -w "12" | sort -n -k 2 | head -1 | cut -d " " -f 2) | ||
| val2=$(grep -v "gender" wages.csv | tr "," " " | cut -f 3,4 -d " " | grep -w "16" | sort -n -k 2 | head -1 | cut -f 2 -d " ") | ||
|
|
||
| echo "$val1 - $val2" | bc |
Owner
There was a problem hiding this comment.
correct, could also print a helpful message describing the output
mdoellma
reviewed
Oct 6, 2017
| @@ -0,0 +1 @@ | |||
| cat wages.csv | sed 's/,/ /g' | cut -d ' ' -f 1,2 | sed '1d' | sort -k1,1 -k2,2n > gender_yearsExperience.txt No newline at end of file | |||
Owner
There was a problem hiding this comment.
Close. The output file should contain the unique gender years experience. You just need to pipe through uniq at the end, before writing the file.
-0.25 pts
mdoellma
reviewed
Oct 6, 2017
| echo -en '\n' | ||
| echo -en '\n' | ||
| echo "The number of females in the top ten earners is:" | ||
| cat wages.csv | sed 's/,/ /g' | sort -n -r -k4,4 | head -n 10 | grep 'female' | wc -l No newline at end of file |
Owner
There was a problem hiding this comment.
Correct. Text helpfully describes the output.
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.