Skip to content

Instantly share code, notes, and snippets.

@pdp7
Created September 10, 2012 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdp7/3691356 to your computer and use it in GitHub Desktop.
Save pdp7/3691356 to your computer and use it in GitHub Desktop.
Cleanup latitude image captures (Chumby)
#!/bin/bash
for i in `wget -qO- 'http://www.flickr.com/services/rest/?method=flickr.photos.search&api_key=3ddb378de0dae3d12f1f9ec4e135827e&user_id=75040169@N05&page=1&per_page=500' |grep '<photo id=' |sed 's#.*<photo id="##' | sed 's#".*##'| tr '\t' ' ' | sed 's/ //g' | perl -ne 'print if ($i>1); $i++;'`; do echo deleting $i; sleep 1; flickcurl photos.delete $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment