I come to you with a problem that puzzled me. I am trying to find the number of lines in a file (in this case, the html of a particular site) longer than x (which in this case is 80).
For example: google.com has (by checking with wc -l) has 7 lines, two of which are longer than 80 (checking with awk '{print NF}'). I am trying to find a way to check how many lines are longer than 80, and then output that number.
My team looks like this: wget -qO - google.com | awk '{print NF}' | sort -g wget -qO - google.com | awk '{print NF}' | sort -g
I was thinking just to calculate which lines have values โโgreater than 80, but I cannot understand the syntax for this. Perhaps awk? Maybe I'm going to do it in the most awkward way and hit the wall for some reason.
Thanks for the help!
Edit: The unit of measure is characters. The team should be able to find the number of lines with more than 80 characters.
source share