how to use loops

NAME: robocount

DESCRIPTION: Simple loop to let robo count e.g. from 1 to 15:


for R in `seq 1 15` ; do robo "I am counting number $R"; done

or the same as script:


#!/bin/sh
for R in `seq 1 15`
do robo "I am counting number $R"
done

… just to get an idea of a simple loop

Advertisements

Post a Comment

Required fields are marked *

*
*

%d bloggers like this: