From the course: Learning Linux Shell Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Counter

Challenge: Counter - Linux Tutorial

From the course: Learning Linux Shell Scripting

Start my 1-month free trial

Challenge: Counter

- [Instructor] Let's put what we've learned to use. Write a script named counter.sh. It will count from one to whatever number the user enters. Assume that the user will always enter a positive integer. Each pass through the loop, display the value of the counter, and when the loop terminates, display Loop Finished. It should take about 10 minutes to solve this challenge.

Contents