Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: Bash

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Bash


    Hello, please help me!!! How to run a program for many times in a loop using bash?? Or maybe you could advise me a good tutorial to learn bush komands?! please!!!please!!

  2. #2

  3. #3
    Linux Newbie
    Join Date
    Sep 2004
    Location
    UK
    Posts
    161
    i=0
    n=30
    while test $i -lt $n
    do
    echo $i
    i=$((i+1))
    done

    replace "echo $i" with your command

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •