如何從 bash 腳本編輯 Pastebin 帖子

如何從 bash 腳本編輯 Pastebin 帖子

如何使用 bash 腳本編輯現有的 Pastebin 貼​​文?我可以使用腳本上傳文本,但每次都會建立新的貼上(名稱相同但地址不同)。

謝謝

答案1

一種可能是下載貼上 bin 檔案並在您的系統上進行編輯,然後在完成後上傳。如果您使用 nano,一種可能是執行以下操作:

wget -O pastebinfile #https://www.pastebin.com/address/to/paste/bin 
nano pastebinfile
#upload command

相關內容