for loop

$ cat for1
for fruit
do 
echo I really like $fruit
done
echo “Let’s make a salad!”


$ bash for1 a b c d
I really like a
I really like b
I really like c
I really like d
“Let’s make a salad!”

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all