david-chidester / Cruise-Industry-Market-Research

A data science project on the cruise line inudustry for the neurodiversity in the workplace program
0 stars 3 forks source link

Fixed issue 47 #48

Closed hungrymonkey closed 5 years ago

hungrymonkey commented 5 years ago

awk -F "," '{print $4}' northamericacruisedetaildata.csv | sed -e 's/^[\t ]//g' -e 's/[[:space:]]*$//' | awk '{ a[$0]++ } END { for (n in a) print n","a[n] } ' | sort > departures.csv

Although I changed the sed command, the only thing I need to change was change $1 to $0 $1 is the first column. $0 is the the whole row