From 5c030e54ea48c4a1573a5f31ec8d7fef2983733f Mon Sep 17 00:00:00 2001 From: alf Date: Thu, 23 Apr 2026 20:16:31 +0000 Subject: [PATCH] =?UTF-8?q?paste=5Fsenden.sh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paste_senden.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 paste_senden.sh 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