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 on 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 : 2472
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top


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