get first 100 lines of file linux code example
Example 1: bash for each line of file
while read p; do
echo "$p"
done <peptides.txt
Example 2: find how many lines in a file linux
wc -l <filename>
while read p; do
echo "$p"
done <peptides.txt
wc -l <filename>