From e450fef8fb63f381636748c79f7abeecc91dd9df Mon Sep 17 00:00:00 2001 From: Keith O'Connor Date: Fri, 15 Sep 2017 10:58:25 -0400 Subject: [PATCH 1/8] KO Favorite movies file --- KO_Fave_Movies | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 KO_Fave_Movies diff --git a/KO_Fave_Movies b/KO_Fave_Movies new file mode 100644 index 0000000..1aacaaf --- /dev/null +++ b/KO_Fave_Movies @@ -0,0 +1,3 @@ +Matilda +Harry Potter +Hidden Figures From be600b2fac8345a61a1accca953cc8bd50fa2f75 Mon Sep 17 00:00:00 2001 From: Kyle Dubiak Date: Fri, 15 Sep 2017 11:00:10 -0400 Subject: [PATCH 2/8] Kdubiak added his 3 favorite --- KO_Fave_Movies | 3 +++ 1 file changed, 3 insertions(+) diff --git a/KO_Fave_Movies b/KO_Fave_Movies index 1aacaaf..3401f50 100644 --- a/KO_Fave_Movies +++ b/KO_Fave_Movies @@ -1,3 +1,6 @@ Matilda Harry Potter Hidden Figures +Star Wars +Lord of the Rings +Avengers From 548d939e2f21d52c1942979cbba3beabbcfeb125 Mon Sep 17 00:00:00 2001 From: Kyle Dubiak Date: Fri, 15 Sep 2017 11:03:19 -0400 Subject: [PATCH 3/8] kdubiak's overall movie rankings --- KO_Fave_Movies | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KO_Fave_Movies b/KO_Fave_Movies index 3401f50..68eb6ef 100644 --- a/KO_Fave_Movies +++ b/KO_Fave_Movies @@ -1,6 +1,6 @@ -Matilda -Harry Potter -Hidden Figures Star Wars +Harry Potter Lord of the Rings Avengers +Hidden Figures +Matilda From c02221e009df9af762a1c6264dde547901dd5b4e Mon Sep 17 00:00:00 2001 From: Keith O'Connor Date: Fri, 15 Sep 2017 11:04:37 -0400 Subject: [PATCH 4/8] KO ranking of six movie titles --- KO_Fave_Movies | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/KO_Fave_Movies b/KO_Fave_Movies index 3401f50..c1abd25 100644 --- a/KO_Fave_Movies +++ b/KO_Fave_Movies @@ -1,6 +1,6 @@ -Matilda -Harry Potter -Hidden Figures -Star Wars -Lord of the Rings -Avengers +5) Matilda +1) Harry Potter +3) Hidden Figures +4) Star Wars +2) Lord of the Rings +6) Avengers From cefd27e1c48d38d9e9e7982b2921bae39e6c0300 Mon Sep 17 00:00:00 2001 From: Kyle Dubiak Date: Sun, 17 Sep 2017 15:15:30 -0400 Subject: [PATCH 5/8] Part one script that sorts unique gender/year experiences --- ExerciseScript4.1 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 ExerciseScript4.1 diff --git a/ExerciseScript4.1 b/ExerciseScript4.1 new file mode 100755 index 0000000..fd8d1e1 --- /dev/null +++ b/ExerciseScript4.1 @@ -0,0 +1,4 @@ +#!/bin/bash +#This script will sort wages.csv by gender and years of experience +#./ExerciseScript4.1 +sed 's/,/ /g' wages.csv | sort -k1,1 -k2,2n | cut -d' ' -f1,2 | uniq > uniquegenderexperience.txt From 44d3eb8c441f0cf2c7625403009e3a6df560edfd Mon Sep 17 00:00:00 2001 From: Kyle Dubiak Date: Mon, 18 Sep 2017 21:26:44 -0400 Subject: [PATCH 6/8] Script that calculates difference in minimum wage between high school and college --- ExerciseScript4.3 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 ExerciseScript4.3 diff --git a/ExerciseScript4.3 b/ExerciseScript4.3 new file mode 100755 index 0000000..34bbd16 --- /dev/null +++ b/ExerciseScript4.3 @@ -0,0 +1,6 @@ +#!/bin/bash +#This will hopefully work +#./ExerciseScript4.3 val1 val2 +grep ",16," wages.csv | sed 's/,/ /g' | sort -k3 -n -r | head -n 16 | sort -k4 -n | head -1 | cut -d" " -f4 > val1 +grep ",12," wages.csv | sed 's/,/ /g' | sort -k3 -n -r | head -n 1188 | sort -k4 -n | head -1 | cut -d" " -f4 > val2 +echo "$1-$2" | bc From afeda4c225bec8035cf4a4206970207e054ef2d8 Mon Sep 17 00:00:00 2001 From: Keith O'Connor Date: Tue, 19 Sep 2017 21:51:09 -0400 Subject: [PATCH 7/8] Script for Exercise 4.2 --- ExerciseScript4.2 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ExerciseScript4.2 diff --git a/ExerciseScript4.2 b/ExerciseScript4.2 new file mode 100644 index 0000000..e39fab7 --- /dev/null +++ b/ExerciseScript4.2 @@ -0,0 +1,8 @@ +#!/bin/bash +# This script will execute the gender, yearsExperience, and wage for the highest and lowest earners in the data + +cat wages.csv | cut -d ',' -f 1,2,4 | sed 's/,/ /g' | sort -k3,3n | sed 1d | (head -n1 && tail -n1) > HighLow.txt + +# This script will return the number of females in the top ten earners in this data set + +cat wages.csv | cut -d ',' -f 1,2,4 | sed 's/,/ /g' | sort -k3,3n | tail -n10| grep "female" | wc -l > TopEarningWomen.txt From cddaab1b77155d05630b713889ef264bdf0c8fe2 Mon Sep 17 00:00:00 2001 From: Kyle Dubiak Date: Wed, 20 Sep 2017 12:28:04 -0400 Subject: [PATCH 8/8] Script that makes variables of highest and lowest values and subtracts them --- ExerciseScript4.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ExerciseScript4.3 b/ExerciseScript4.3 index 34bbd16..6634653 100755 --- a/ExerciseScript4.3 +++ b/ExerciseScript4.3 @@ -1,6 +1,6 @@ #!/bin/bash #This will hopefully work -#./ExerciseScript4.3 val1 val2 -grep ",16," wages.csv | sed 's/,/ /g' | sort -k3 -n -r | head -n 16 | sort -k4 -n | head -1 | cut -d" " -f4 > val1 -grep ",12," wages.csv | sed 's/,/ /g' | sort -k3 -n -r | head -n 1188 | sort -k4 -n | head -1 | cut -d" " -f4 > val2 -echo "$1-$2" | bc +#./ExerciseScript4.3 +val1="$(grep ",16," wages.csv | sed 's/,/ /g' | sort -k3 -n -r | head -n 16 | sort -k4 -n | head -1 | cut -d" " -f4)" +val2="$(grep ",12," wages.csv | sed 's/,/ /g' | sort -k3 -n -r | head -n 1188 | sort -k4 -n | head -1 | cut -d" " -f4)" +echo "$val1 - $val2" | bc