Skip to content

Instantly share code, notes, and snippets.

@Willamin
Created December 23, 2015 04:47
Show Gist options
  • Save Willamin/56b4d819c19b3a58966a to your computer and use it in GitHub Desktop.
Save Willamin/56b4d819c19b3a58966a to your computer and use it in GitHub Desktop.
Grabs the real image from redbubble.
#!/bin/bash
#
# rips images from redbubble
pbpaste | xargs curl -s "$1" | grep "ih0\.redbubble\.net" | grep "main" |\
tr '"' '\n' | tail -n 2 | head -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment