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.
It uses 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.
1 | function 4get() { |
The script can also be found on gist.