Wget, Curl and POST (refs): Difference between revisions
From WikiMLT
m Стадий: 4 [Фаза:Авторизиране, Статус:Разработен]; Категория:Linux Server |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude> | <noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude> | ||
Download a script from [https://pastebin.com/raw/HrLTibuR PasteBin] by <code>curl</code>: | Download a script from [https://pastebin.com/raw/HrLTibuR PasteBin] by <code>curl</code>: | ||
<syntaxhighlight lang="shell" line="1"> | <syntaxhighlight lang="shell" line="1"> |
Revision as of 13:30, 5 August 2022
Download a script from PasteBin by curl
:
curl https://pastebin.com/raw/HrLTibuR | \
sed -e 's/\r$//' | sudo tee /ust/local/bin/merge-video-sub.sh && \
sudo chmod +x /ust/local/bin/merge-video-sub.sh
References:
- GET and POST requests by Wget and/or CURL
- Auto login on page via CLI by the POST command
- Text Processing: Remove Carriage Return