The Coding Slim Jim

Ahh.. who gave the code-monkey a wrench?

Showing posts with label while. Show all posts
Showing posts with label while. Show all posts

Friday, May 6, 2011

Shell repeat/do/while for a count

Gahh.. simple thing but annoying its for bash shell

 i=245; while [ $i -ne 33 ]; do  echo $i; i=`expr $i - 1`; done
Posted by Ashley Smart at 12:40 PM 0 comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: shell, while
Older Posts Home
Subscribe to: Posts (Atom)

Total Pageviews

Social

Blog Archive

  • ▼  2017 (2)
    • ▼  August (1)
      • Q learning - and its core flaws
    • ►  March (1)
  • ►  2016 (20)
    • ►  October (3)
    • ►  September (2)
    • ►  August (4)
    • ►  July (9)
    • ►  June (1)
    • ►  May (1)
  • ►  2015 (2)
    • ►  December (1)
    • ►  April (1)
  • ►  2014 (5)
    • ►  November (1)
    • ►  July (2)
    • ►  April (2)
  • ►  2013 (8)
    • ►  October (2)
    • ►  September (4)
    • ►  June (1)
    • ►  January (1)
  • ►  2012 (26)
    • ►  December (1)
    • ►  November (5)
    • ►  October (2)
    • ►  September (3)
    • ►  July (1)
    • ►  June (1)
    • ►  May (3)
    • ►  April (9)
    • ►  January (1)
  • ►  2011 (46)
    • ►  November (5)
    • ►  October (4)
    • ►  September (1)
    • ►  August (2)
    • ►  July (6)
    • ►  June (1)
    • ►  May (12)
    • ►  April (2)
    • ►  March (5)
    • ►  February (5)
    • ►  January (3)
  • ►  2010 (153)
    • ►  December (5)
    • ►  November (7)
    • ►  October (15)
    • ►  September (13)
    • ►  July (20)
    • ►  June (65)
    • ►  May (15)
    • ►  April (13)
  • ►  2009 (9)
    • ►  August (7)
    • ►  July (1)
    • ►  May (1)

Popular Posts

Powered by Blogger.