Skip to content

"sampathkumar-yamasaki submission"#4

Open
bsampath17 wants to merge 14 commits into
lyy005:masterfrom
bsampath17:master
Open

"sampathkumar-yamasaki submission"#4
bsampath17 wants to merge 14 commits into
lyy005:masterfrom
bsampath17:master

Conversation

@bsampath17

Copy link
Copy Markdown

No description provided.

Comment thread earnings.sh
#Usage: bash earnings.sh filename.csv
#1:
cat $1 | sed 's/,/ /g' | cut -d ' ' -f 1,2 | uniq | sort -n -k 1 | sort -n -k 2 | uniq > output_ex4.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.

Sort with gender first then by yearExperience. It should be:
cat $1 | sed 's/,/ /g' | cut -d ' ' -f 1,2 | uniq | sort -n -k 2 | sort -n -k 1 | uniq > output_ex4.txt

Or:
cat wages.csv | grep -v gender | cut -d , -f 1,2 | sort -u | tr ',' ' ' | sort -k1,1d -k2,2n > categories.txt

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