Skip to content

Instantly share code, notes, and snippets.

@jruz
Created November 5, 2015 10:00
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 jruz/66a6333d273ceef9621b to your computer and use it in GitHub Desktop.
Save jruz/66a6333d273ceef9621b to your computer and use it in GitHub Desktop.
Import all files in a folder to separate Gists
# Install Gist gem https://github.com/defunkt/gist
gem install gist
# Authenticate
gist --login
# cd into the folder containig the files to gist and run
ls -1 | while read file ; do echo "creating gist for: $file"; gist -p $file ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment