Skip to content

Instantly share code, notes, and snippets.

@eine
Last active May 24, 2018 23:26
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 eine/24905f000b3954fae75a163244ffd033 to your computer and use it in GitHub Desktop.
Save eine/24905f000b3954fae75a163244ffd033 to your computer and use it in GitHub Desktop.
#! /bin/bash
curl -L $1 | \
while read L; do
[ "$(echo $L | grep '#>>')" != "" ] && F="$(echo "$L" | sed 's/#>> //g')" || echo "$L" >> $F;
done
chmod +x run.sh
./run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment