Skip to content

karlin-koczwara submission#8

Open
mkarlin1 wants to merge 10 commits into
mdoellma:masterfrom
mkarlin1:master
Open

karlin-koczwara submission#8
mkarlin1 wants to merge 10 commits into
mdoellma:masterfrom
mkarlin1:master

Conversation

@mkarlin1

Copy link
Copy Markdown

No description provided.

Comment thread challenge3.txt
@@ -0,0 +1,7 @@
# the effect of graduating college on the minimum wage

@mdoellma mdoellma Oct 6, 2017

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Work on writing more descriptive commit messages and comments within the code. This will help in more complex future collaborations.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.75/3

Comment thread challenge3.txt
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

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, could also print a helpful message describing the output

Comment thread script1.sh
@@ -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

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread script2.sh.txt
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

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. Text helpfully describes the output.

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

Successfully merging this pull request may close these issues.

4 participants