Creating Lists And Do Loops With Bash On Linux

View previous topic View next topic Go down

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
avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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