Consider these wget
codes:
wget -P ~/ https://raw.githubusercontent.com/user/repo/branch/papj.sh
wget -P ~/ https://raw.githubusercontent.com/user/repo/branch/nixta.sh
Is there any elegant way to unite different terminals of the same basic URL as above, into one line instead 2 or more?
Pseudocode:
wget -P ~/ https://raw.githubusercontent.com/user/repo/branch/papj.sh||nixta.sh
Best Answer
As
wget
accepts several URLs at once this can be done using brace expansion inbash
:(or even
but this only works for well-suited names of course).