

1·
19 days agoOut of curiosity, how?
< urls.txt while read -r url; ...
Is a syntax error.
while read -r url < urls.txt; ...
Result in an infinite loop.


Out of curiosity, how?
< urls.txt while read -r url; ...
Is a syntax error.
while read -r url < urls.txt; ...
Result in an infinite loop.


You can also avoid cat since you aren’t actually concatenating files (depending on file size this can be much faster):
while read -r url; do echo "download $url"; done < urls.txt


Tmux was purpose built for terminal multiplexing. You can assign session names for organizing and manipulating multiple instances. Send keys to and read output from detached sessions. It’s easy to script.


I’d recommend tmux for that particular use. Screen has a lot of extras that are interesting but don’t really follow the GNU mentality of “do one thing and do it well.”
There’s still valid concern about this being a foot in the door tactic. Once an OS complies with this request what will the next one be? Why should this even be allowed?
Either way though, the reddit citation is a bit unnerving.