From 2e52f1a9428dd9738f64dd55a20853d29f3015de Mon Sep 17 00:00:00 2001 From: vsanders Date: Fri, 28 Sep 2018 11:07:43 -0400 Subject: [PATCH 01/10] Vy's Top 3 Movies --- top3movies.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 top3movies.txt diff --git a/top3movies.txt b/top3movies.txt new file mode 100644 index 0000000..ef6a34d --- /dev/null +++ b/top3movies.txt @@ -0,0 +1,3 @@ +Kill Bill +V for Vendetta +Matilda From 59dfcbe73335eec39efedd3fb86fec6c3980c812 Mon Sep 17 00:00:00 2001 From: Alicia Susi Date: Fri, 28 Sep 2018 11:10:25 -0400 Subject: [PATCH 02/10] Added Alicia's Top 3 Movies --- top3movies.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/top3movies.txt b/top3movies.txt index ef6a34d..8fabfc4 100644 --- a/top3movies.txt +++ b/top3movies.txt @@ -1,3 +1,6 @@ Kill Bill V for Vendetta -Matilda +Matilda +Shrek +The Departed +Hacksaw Ridge From 60fadb584831955a02ad4ef81a8f1eefbd279adf Mon Sep 17 00:00:00 2001 From: Alicia Susi Date: Fri, 28 Sep 2018 11:14:43 -0400 Subject: [PATCH 03/10] Alicia's Top 6 Movies --- top3movies.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/top3movies.txt b/top3movies.txt index 8fabfc4..2476222 100644 --- a/top3movies.txt +++ b/top3movies.txt @@ -1,6 +1,6 @@ -Kill Bill -V for Vendetta -Matilda -Shrek The Departed +Shrek Hacksaw Ridge +Kill Bill +Matilda +V for Vendetta From 8f9e57566eb290c1dfce1c2fdbbf2856908c5b2e Mon Sep 17 00:00:00 2001 From: vsanders Date: Fri, 28 Sep 2018 11:15:44 -0400 Subject: [PATCH 04/10] Ranked Movies --- top3movies.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/top3movies.txt b/top3movies.txt index 8fabfc4..ab3fd67 100644 --- a/top3movies.txt +++ b/top3movies.txt @@ -1,6 +1,6 @@ -Kill Bill -V for Vendetta +V for Vendetta +Kill Bill Matilda -Shrek The Departed Hacksaw Ridge +Shrek From ef37205357096ab1df0ffa9b361e103994dbaa52 Mon Sep 17 00:00:00 2001 From: Alicia Susi Date: Thu, 4 Oct 2018 17:58:54 -0400 Subject: [PATCH 05/10] Exercise 5 part 1 --- 1.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 1.sh diff --git a/1.sh b/1.sh new file mode 100644 index 0000000..097cfca --- /dev/null +++ b/1.sh @@ -0,0 +1,2 @@ +cat wages.csv | cut -d, -f 1,2 | sort -k 2,2n -n -d | grep -v gender | sed -E 's/,/ /g' | uniq + From b43de0395a74b19320a5e0197ea499b0c52600bd Mon Sep 17 00:00:00 2001 From: Alicia Susi Date: Thu, 4 Oct 2018 18:35:33 -0400 Subject: [PATCH 06/10] Fixed numerical sort --- 1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.sh b/1.sh index 097cfca..6f9e972 100644 --- a/1.sh +++ b/1.sh @@ -1,2 +1,2 @@ -cat wages.csv | cut -d, -f 1,2 | sort -k 2,2n -n -d | grep -v gender | sed -E 's/,/ /g' | uniq +cat wages.csv | cut -d, -f 1,2 | sed -E 's/,/ /g' | sort -k1,1d -k2,2n | grep -v gender | uniq From 275580475b13d3f95efc7758593dace233ad1912 Mon Sep 17 00:00:00 2001 From: vsanders Date: Thu, 4 Oct 2018 18:37:09 -0400 Subject: [PATCH 07/10] Added file for problem 3 --- 3.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 3.sh diff --git a/3.sh b/3.sh new file mode 100644 index 0000000..48a7c63 --- /dev/null +++ b/3.sh @@ -0,0 +1,9 @@ +#difference in minumum wage for yearsexperience 12 and 16 + +VARA=$(cut -d , -f 2,4 wages.csv | grep "12," | sort -t "," -nk 2,2 | head -1 | cut -d , -f 2) +VARB=$(cut -d , -f 2,4 wages.csv | grep "16," | sort -t "," -nk 2,2 | head -1 | cut -d , -f 2) +echo $VARA +echo $VARB + +echo $VARA -$VARB | bc + From 3da37ef16e39a428ebea0efa89233be20716edf3 Mon Sep 17 00:00:00 2001 From: Alicia Susi Date: Thu, 4 Oct 2018 18:54:16 -0400 Subject: [PATCH 08/10] Final version of part 1 --- newfile1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 newfile1 diff --git a/newfile1 b/newfile1 new file mode 100644 index 0000000..9ac86bf --- /dev/null +++ b/newfile1 @@ -0,0 +1 @@ +cat wages.csv | cut -d, -f 1,2 | sed -E 's/,/ /g' | sort -k1,1d -k2,2n | grep -v gender | uniq From aa1feb4c6489abe6ca796efc8e6a451fe1c39dfa Mon Sep 17 00:00:00 2001 From: Alicia Susi Date: Thu, 4 Oct 2018 18:54:37 -0400 Subject: [PATCH 09/10] Final version of part 2 --- newfile2 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 newfile2 diff --git a/newfile2 b/newfile2 new file mode 100644 index 0000000..8986a7d --- /dev/null +++ b/newfile2 @@ -0,0 +1,9 @@ +echo "Gender, yearsExperience, wage for highest earner" +cut -d , -f 1,2,4 wages.csv | grep -v "gender" | sort -t "," -nrk3,3 | head -1 + +echo "gender, yearsExperience, and wage for lowest earner" +cut -d , -f 1,2,4 wages.csv | grep -v "gender" | sort -t "," -nrk3,3 | tail -1 + +echo "number of females in the top 10 earners" +cut -d , -f 1,2,4 wages.csv | grep -v "gender" | sort -t "," -nrk3,3 | head -10 | grep "female" | wc -l + From 23f6cd76bfd9642948d41c39a1ef195f846e243b Mon Sep 17 00:00:00 2001 From: Alicia Susi Date: Thu, 4 Oct 2018 18:54:59 -0400 Subject: [PATCH 10/10] Final version of part 3 --- newfile3 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 newfile3 diff --git a/newfile3 b/newfile3 new file mode 100644 index 0000000..9c69fc9 --- /dev/null +++ b/newfile3 @@ -0,0 +1,9 @@ +#Difference in minumum wage for yearsexperience 12 and 16 + + VARA=$(cut -d , -f 2,4 wages.csv | grep "12," | sort -t "," -nk 2,2 | head -1 | cut -d , -f 2) + VARB=$(cut -d , -f 2,4 wages.csv | grep "16," | sort -t "," -nk 2,2 | head -1 | cut -d , -f 2) + echo $VARA + echo $VARB + + echo $VARA -$VARB | bc +