Skip to content

Instantly share code, notes, and snippets.

@aguegu
Last active December 23, 2015 11:07
Show Gist options
  • Save aguegu/5712299 to your computer and use it in GitHub Desktop.
Save aguegu/5712299 to your computer and use it in GitHub Desktop.

Revisions

  1. aguegu revised this gist Oct 30, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions octocats.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/bin/bash
    #!/bin/zsh

    curl -s "http://octodex.github.com/" | grep "<img.*data-src" | grep -o "http[^\"]*" | while read line; do
    wget $line
    curl -s "https://octodex.github.com/" | grep "<img.*data-src" | grep -o "/image[^\"]*" | while read line; do
    wget 'https://octodex.github.com'$line
    done
  2. aguegu created this gist Jun 5, 2013.
    5 changes: 5 additions & 0 deletions octocats.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash

    curl -s "http://octodex.github.com/" | grep "<img.*data-src" | grep -o "http[^\"]*" | while read line; do
    wget $line
    done