Activity - shell pipelines
Billboard Hot 100 (2016)
Let’s play with the Billboard Hot 100 from 2016, which I extracted into a text file.
Write pipelines to find out
- sort the list to start at 100 and countdown to 1
- how many song titles mention ``love’’?
- how many artists are in the top 100?
- which artist had the most hits in top 100?
Some useful commands:
$ BB=~cs50/public_html/Lectures/bash2/Billboard2016-hot100.txt
$ less $BB
$ cut -d : -f 3 $BB | less
$ wc -l $BB