Is amazing what you do with bash. I am learning it and here is an example of what I could gather looking into the man page of the commands to collect the frequencies of comments in HN.<p>a() {<p># frequencies of comments by minutes or hours<p># arguments $1 is the id number of the news, $2 can be minutes, hours or days<p>curl -ks https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=$1 | grep -Po &quot;\d+ $2 ago&quot; | sed &quot;s&#x2F;$2 ago&#x2F;&#x2F;&quot; | sort -n | uniq -c |awk &#x27;BEGIN {print &quot;$2 \t freq&quot;} {print $2,&quot;\t&quot;, $1}&#x27;
 }<p>Surely, this could be improved, I would like to see some improvements from bash hackers. But for me is a good and effective example  of the power of bash in the realm of small scripts,  where I think it is king.
The power of bash (from a newbye viewpoint)