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 · 46 weeks and 2 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 · 46 weeks and 1 day 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 · 45 weeks and 4 days 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 · 45 weeks and 3 days 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 · 45 weeks and 2 days 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 · 45 weeks and 1 day 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 · 45 weeks ago
I read your blog frequently and I just thought I’d say keep up the amazing work! hotel in isla mujeres
xoheko1229 · 44 weeks and 6 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 · 44 weeks and 5 days ago
I got lost good thing I found this site! guitar lessons salt lake city
aegyjingoo · 42 weeks ago
These are some great tools that i definitely use for SEO work. This is a great list to use in the future.. St Thomas private boat charter
xoheko1229 · 31 weeks and 3 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. denver to vail limo
xoheko1229 · 21 weeks and 1 day ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. All-Terrain Electric Wheelchair
xoheko1229 · 20 weeks and 6 days ago
I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. young australian mines
xoheko1229 · 19 weeks and 3 days ago
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. Cherada
xolabemo · 13 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: