Nerdworld problems
Some months ago I wrote this in order to download some specific "subfolder"
subfolder=$(curl -L --silent $url 2>&1 | grep -oP '<h1(?:\s[^>]*)?>\K.*?(?=</h1>)' | grep -vi warning | awk -F"-" '{print $2}'| sed 's/([^)]*)//g;s/ / /g' |xargs | tr ' ' '_')
Ehmmm....ehmmmm...ehmm..hä?!?
Now...I do not remember how I came up with this nor do I recall in what state of mind I was while typing this string monster, I remember that I was in a train and that It was summer back then...anyway this string monster works as intended, and this makes me proud, happy, confused and sad at the same time.
4 Likes
1 Comments