Answered by : salvatore-luca
while read p; do echo "$p"
done <peptides.txt
Source : https://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash | Last Update : Thu, 12 Mar 20
Answered by : crazy-caracal-mkhsn2q66xti
#!/bin/bash
filename='peptides.txt'
echo Start
while read p; do echo $p
done < $filename
Source : https://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash | Last Update : Mon, 03 May 21
Answered by : shy-shrike-vbxae7d6m2t7
while read p; do echo "$p"
done <peptides.txt
Source : | Last Update : Mon, 13 Apr 20
Answered by : usama-varikkottil
for word in $(cat peptides.txt); do echo $word; done
Source : https://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash | Last Update : Fri, 21 Aug 20
Answered by : michael-kashkov
while read line; do sudo $line; done merge.txt
Source : | Last Update : Mon, 05 Sep 22
Answered by : tomer-zaks
xargs -I{} curl "xyz.com/v1/"{} <file
Source : https://stackoverflow.com/questions/39028558/read-each-line-from-a-file-and-use-it-as-a-variable-in-curl-command | Last Update : Tue, 24 May 22