This is an old function that I wrote a while back to download content from 4chan threads. It stopped working recently since they changed the link format. Fixed it up because I was bored.
xargs to dispatch downloads to threads and uses only commonly used unix tools. If we replace the
\d regex with
[0-9] it’ll work with plain
grep without relying on PCRE.
The script can also be found on gist.