shell bash iterate number range with for loop

rangeBegin=10; rangeEnd=20; for ((numbers=rangeBegin; numbers<=rangeEnd; numbers++)); do echo $numbers; done

1
2019-07-27 21:04:27

5 Alternatives + Submit Alt

What Others Think

I love the way you write and share your niche! Very interesting and different! Keep it coming!best cozumel beach best cozumel beach
xoheko1229 · 6 weeks and 6 days ago
This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it scuba in cozumel
xoheko1229 · 6 weeks and 5 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. thing to do in tulum
xoheko1229 · 6 weeks and 1 day ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. newest hotels in cancun
xoheko1229 · 6 weeks ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. best restaurants in cancun beach
xoheko1229 · 6 weeks ago
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. restaurant playa del carmen beach
xoheko1229 · 5 weeks and 5 days ago
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. trip to isla mujeres
xoheko1229 · 5 weeks and 5 days ago
I read your blog frequently and I just thought I’d say keep up the amazing work! hotel in isla mujeres
xoheko1229 · 5 weeks and 4 days ago
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. things to do in isla contoy
xoheko1229 · 5 weeks and 3 days ago
I got lost good thing I found this site! guitar lessons salt lake city
aegyjingoo · 2 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: