3 ms·
One nice application I've found of pbpaste is when I want to count things I find in a browser. For example, to count the (approximate) number of comments in thi
by alangpierce 11y ago
One nice application I've found of pbpaste is when I want to count things I find in a browser. For example, to count the (approximate) number of comments in this thread, you can copy all text using Cmd+A, Cmd+C, then run this:
pbpaste | grep ago | wc -l
In this case there are easier (and more accurate) ways, but in other situations you can use it to find the length of a list on the web where it would otherwise be harder.
- emmelaich 11y agopbpaste | grep -wc ago is 0.3% faster and 1.7% more correct :-)