From: Jan Svitok Date: 2006-11-08T01:15:58+09:00 Subject: Re: How to make a cycling counter from commandline? On 11/7/06, darenbell@gmail.com wrote: > Hi, I'm looking for a way to implement this idea: > > > ------------------------------------- > count=1 > total=15 > > until count>total > print "Record #{count} of #{total} processed." > count+=1 > end > ------------------------------------- > > > I want this to print out in a Linux shell. However, I'd prefer it if > there was a way to have this counter increment without printing a new > line. As in, from the user's perspective the 'count' would just > increment until it matched the total... all taking place on the same > line. > > I know I've seen this done, but can Ruby do this? Search the archives for count or counter. It was discussed last week or so.