minus-squarehades@feddit.uktoLinux@lemmy.ml•foreach - Bash alias to execute command on each linelinkfedilinkarrow-up11·1 day agoNice! I used to do something like this, which avoids xargs altogether: cat urls.txt | while read url; do echo download $url; done linkfedilink
minus-squarehades@feddit.uktoLinux@lemmy.ml•What are some of your most useful or favorite terminal commands?linkfedilinkarrow-up0·2 months agoAlso if you make a typo you can quickly fix it with ^, e.g. ls /var/logs/apache ^logs^log linkfedilink
Nice! I used to do something like this, which avoids xargs altogether:
cat urls.txt | while read url; do echo download $url; done