PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Creating Lists And Do Loops With Bash On Linux

Go down

Creating Lists And Do Loops With Bash On Linux Empty Creating Lists And Do Loops With Bash On Linux

Post by jamied_uk 20th July 2016, 10:05





Code:
#!/bin/bash
# Usage:
# ./lists.sh
colours="green blue red white black"
 for col in $colours
do
    echo $col
done
jamied_uk
jamied_uk
Admin

Posts : 2943
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum