Trying to improve Bash scripting skills - question


i learn how perform while loop while inside while loop. have written small bit of script love learn simplify. appreciated.
-thanks
dave

code:
#!/bin/bash  a="0"  b="0"  while [ $a -lt 10 ]         echo variable $a , b variable $b.      a=$[$a+1]  done  ##########  a="0"  b="5"  while [ $a -lt 10 ]         echo variable $a , b variable $b.      a=$[$a+1]  done
 

not sure looking for

code:
  #!/bin/bash  a=0  while [ "$a" -lt 10 ]           b=0      while [ "$b" -lt 10 ]                   echo variable $a , b variable $b.            b=$[$b+1]        done        a=$[$a+1]  done    
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments