Recent Changes - Search:

Softwares

.

ForLoopsExample

  shibu@shibu-laptop:~$ cat forloop
  #!/bin/sh
  for i in 1 2 3 4 5 6 7 8 9 10
  do
  echo "looping of the number is $i"
  sleep 1
  done

  shibu@shibu-laptop:~$ sh forloop
  looping of the number is 1
  looping of the number is 2
  looping of the number is 3
  looping of the number is 4
  looping of the number is 5
  looping of the number is 6
  looping of the number is 7
  looping of the number is 8
  looping of the number is 9
  looping of the number is 10
Edit - History - Print - Recent Changes - Search
Page last modified on July 19, 2007, at 01:11 PM