commit 5c030e54ea48c4a1573a5f31ec8d7fef2983733f Author: alf Date: Thu Apr 23 20:16:31 2026 +0000 paste_senden.sh hinzugefügt diff --git a/paste_senden.sh b/paste_senden.sh new file mode 100644 index 0000000..eb364d8 --- /dev/null +++ b/paste_senden.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +FILE="$1" # Pfad als erstes Argument beim Aufruf: ./script.sh datei.txt + +curl -X POST \ + -d 'api_dev_key=RdWPnCdyvMdV1YNr_Un-aw0zfbWnspff' \ + -d 'api_paste_name=tmp.txt' \ + --data-urlencode "api_paste_code@$FILE" \ + -d 'api_option=paste' \ + "https://pastebin.com/api/api_post.php" + +echo