Created
February 11, 2017 02:44
-
-
Save bwasti/a73bb4336af8a0bdb193b7a0540310da to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
echo "***** pasted with pastedir *****" > /tmp/_pastedirout | |
echo "" >> /tmp/_pastedirout | |
find $1 -type f -not -path '*/\.*' -exec bash -c 'echo ------ $1 ------ && cat $1' _ {} \; >> /tmp/_pastedirout | |
curl -s --data code="$(cat /tmp/_pastedirout)" https://api.teknik.io/v1/Paste | sed 's/.*\"url\":\"\([^\"]*\)\".*/\1/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment