Skip to content

keller-nicholson#9

Open
kellmnop wants to merge 12 commits into
mdoellma:masterfrom
kellmnop:master
Open

keller-nicholson#9
kellmnop wants to merge 12 commits into
mdoellma:masterfrom
kellmnop:master

Conversation

@kellmnop

Copy link
Copy Markdown

No description provided.

Comment thread Ex4Challenge.sh
@@ -0,0 +1,30 @@
#!/bin/bash

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.

Nicely commented

Comment thread Ex4Challenge.sh

# Q1 solution
grep 'male' wages.csv | cut -d ',' -f 1,2 | sed 's/,/ /' | sort -k1,1 -k2,2n | uniq > gender-yearsExperience.txt

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!

Comment thread Ex4Challenge.sh
@@ -0,0 +1,30 @@
#!/bin/bash

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.

3/3

Comment thread Ex4Challenge.sh
echo "$top_women women in top 10 earners."

#Q3 solution
# Grab NUM ($1) years school, ',' -> ' ', sort in reverse by pay (f. 4), grab lowest pay, cut out extraneous info, returns.

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.

Comment helpful to users and future you!

Comment thread Ex4Challenge.sh
echo "Lowest earner: $low"
top_women=$(echo "$var" | tail -10 | grep 'female' | wc -l)
echo "$top_women women in top 10 earners."

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!

Comment thread Ex4Challenge.sh
}

val=$(echo "$(minWage 16) - $(minWage 12)" | bc)
echo "The minimum wage in this set was $val higher for college graduates than high school graduates."

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!

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.

3 participants