Just in time for the summer season, I finished a bash script to check nyaa to see if a show has been uploaded in the last day, and if so, download it. Overall not a fun experience as I've got to deal with url-encoded characters and that garbage.
title=$(echo "$rss" | grep -Po "(?<=<title>
.********;/title>
" | head -2 | tail -1 | sed -r "s/((.*))/\(\1\)/"
I hate bash.
Edit: Muh regular expression's ruined formatting
28-Jun-2014 03:34:59
- Last edited on
28-Jun-2014 03:35:36
by
Icy Spring