Files
paste_senden_holen/paste_senden.sh
2026-04-23 20:16:31 +00:00

13 lines
306 B
Bash

#!/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