need help doing a egrep and replace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #31
    This shuld be answered by administrators.

    Admins,
    can u look into this issue.

    Raghu

    Comment

    • coaxfiber
      New Member
      • Mar 2007
      • 60

      #32
      how to skip in a loop

      the contents of my scripts:

      #!/usr/bin/ksh

      integer x=1
      while ((x<=20));

      do

      print $x;

      if [ $x = 5 ]
      then
      x=10
      fi
      ((x=x+1));

      done
      _____________
      output:
      1
      2
      3
      4
      5
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      -------------------------------

      how can i make another skip: so my output would be:


      1
      2
      3
      4
      5
      11
      12
      13
      14
      18 ---> i skip from 15 to 17
      19
      20



      tyvm.

      Comment

      • coaxfiber
        New Member
        • Mar 2007
        • 60

        #33
        oopsss. so sorry..

        got the answers already..

        tyvm..

        Comment

        Working...