loop file bash
while read p; do
echo "$p"
done <peptides.txt
loops in shell script
#!/bin/bash
for i in 1 2 3 4 5
do
echo "Welcome $i times"
done
-----------------------------------
#!/bin/bash
for i in {1..5}
do
echo "Welcome $i times"
done
----------------------------------
#!/bin/bash
for i in {0..10..2}
do
echo "Welcome $i times"
done
------------------------------------
a=0
# -lt is less than operator
#Iterate the loop until a less than 10
while [ $a -lt 10 ]
do
# Print the values
echo $a
# increment the value
a=`expr $a + 1`
done
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us