Skip to content
Sam Stuewe edited this page Dec 6, 2015 · 2 revisions

Welcome to the pbpst wiki!

Tips and Tricks

pbpst, for a few reasons, does not support batch operations (e.g., it does not allow uploading multiple files at once or deleting multiple pastes at once (unless using -Ry)). However, some of these limitations can be easily overcome with some shell manipulation. For example, to remove multiple pastes in one command, you can do the following:

for i in <list> <of> <uuids> <of> <pastes> <to> <remove>; do pbpst -Ru "$i"; done

And, because pbpst -Dq '' | awk '{ print $1 }' will print all UUIDs of pastes for your current provider, you could do the following to remove all pastes (from the current provider):

Warning: This operation cannot be undone

for i in $(pbpst -Dq '' | awk '{ print $1 }'); do pbpst -Ru "$i"; done
Clone this wiki locally