Quantcast
Channel: Looping through the content of a file in Bash - Stack Overflow
Viewing all articles
Browse latest Browse all 19

Answer by hamou92 for Looping through the content of a file in Bash

$
0
0

I like to use xargs instead of while. xargs is powerful and command line friendly

cat peptides.txt | xargs -I % sh -c "echo %"

With xargs, you can also add verbosity with -t and validation with -p


Viewing all articles
Browse latest Browse all 19

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>