awk '{print $2}' INPUTFILE
or
cat INPUTFILE | awk '{print $2}' |sort
wget -q -O- https://tools.ietf.org/rfc/ |grep -i protocol |awk -F\" '{print $2}' |grep http|wc -l
so let's break down these commands: wget: pulls a file from the web as text the -O- pipes it to the next command grep: takes lines of the table with the word protocol in the description awk: this is a hack, the url is quoted grep: remove blank lines by only selecting a url wc: count the linesThe power of this style of command chaining is that each step can be substituted for a different use. Some times the intermediary steps are ugly, but can be substitued and switched easily. Ok to look at the first step run:
wget -q -O- https://tools.ietf.org/rfc/ |grep -i protocol |head -3
this shows three lines from the top of the file