Created
November 5, 2015 10:00
-
-
Save jruz/66a6333d273ceef9621b to your computer and use it in GitHub Desktop.
Import all files in a folder to separate Gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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