notes/Copy Pastebin posts to other sites-V8GdPVv1.sh
#!/bin/bash
#copy pastebin posts to other pasting sites
#download list of pastes
wget -q "https://pastebin.com/u/metalx1000" -O- |\
grep 'href'|\
grep 'Public paste'|\
cut -d\" -f 10|\
while read line;
do
echo "https://pastebin.com/raw$line";
done > dls
#get list of site to paste to
pastebinit -l|grep '^- '|sed 's/- //g' > sites
cat dls|while read u
do
echo "# By Kris Occhipinti - http://filmsbykris.com" > p
echo "# Licensed under the GPLv3 - https://www.gnu.org/licenses/gpl-3.0.txt" >> p
wget "$u" -O- >> p
cat sites|while read s
do
pastebinit -i p -b "$s"
done
done