Hacker News new | past | comments | ask | show | jobs | submit login

May I suggest a temp file? (and the other change is for a Mac)

  tmp=$(mktemp).htm; curl https://rnz.shorthandstories.com/yoghurt-mafia/embed.js \
    | sed 's/<em>//g;s/<\/em>//g'| tr -cd '[ -~]'|grep -Eo '(<p c.{10}[^>]*>)|(https://[^ ]*.jpeg)' \
    | uniq | sed '/^https.*jpeg$/s/.*/<li><a href=&>&<\/a><\/li>/g' > $tmp;
    open -a Firefox $tmp



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: