-
Notifications
You must be signed in to change notification settings - Fork 9
Corley-Kilgore Exercise 4 Submission #1
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
Open
kkilgoreND
wants to merge
12
commits into
lyy005:master
Choose a base branch
from
kkilgoreND:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1b50d9c
initial commit of favorite movies
mcorley1 c68b85d
ranking favorite movies
mcorley1 83a9bd9
New fav. 3 movies
kkilgoreND 267458a
favoritemovies edit 2
kkilgoreND 223644d
initial commit for part 2
mcorley1 b2a3213
updated and correct version of code for part 2 of challenge
mcorley1 cad2aeb
initial commit of exercise 4 challenge with number 2 and 3 completed
mcorley1 f0e8aea
removal of headers
kkilgoreND c47767f
removal of columns other than gender and years experience, sorting of…
kkilgoreND 563235f
removal of columns other than gender and yearsExperience, sorting of …
kkilgoreND b161ed8
Create part1script.sh
kkilgoreND 7f356d0
code for part 1
kkilgoreND File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # a script for determining gender and wages of highest and lowest earning workers. | ||
| # Also tells the number of females in the top 10 earners in the data sel | ||
| # Usage: bash part2.sh wages.csv | ||
|
|
||
| echo "information for lowest wage earner" | ||
| cat wages.csv | grep -v "gender" | tr "," " " | sort -n -k 4 | head -n 1 | cut -d " " -f 1,2,4 | ||
| echo "information for highest wage earner" | ||
| cat wages.csv | grep -v "gender" | tr "," " " | sort -n -k 4 | tail -n 1 | cut -d " " -f 1,2,4 | ||
| echo "number of females in the top ten earners" | ||
| cat wages.csv | tr "," " " | sort -n -k 4 | tail -n 10 | grep "female" | wc -l | ||
|
|
||
| # part 4 of challenge | ||
| # calculates difference between minimum wage of personw ith 16 years of school and 12 years of school | ||
| echo "diffrence of minimum wages for person with 12 years and 16 years school" | ||
| val1=$(cat wages.csv | tr "," " " | cut -d " " -f 3,4 | grep "12 " | sort -n -k 2 | head -n 1 | cut -d " " -f 2) | ||
| val2=$(cat wages.csv | tr "," " " | cut -d " " -f 3,4 | grep "16 " | sort -n -k 2 | head -n 1 | cut -d " " -f 2) | ||
| echo "$val2 - $val1" | bc | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <<<<<<< HEAD | ||
| Howls Moving Castle | ||
| Kiki's Delivery Service | ||
| Spirited Away | ||
| The Little Mermaid | ||
| I Am Legend | ||
| A Beautiful Mind | ||
| ======= | ||
| A Beautiful Mind | ||
| I Am Legend | ||
| The Little Mermaid | ||
| >>>>>>> c68b85d48397e22ac94f9a2b7b49a99131cff851 |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job!