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 - Linux Tutorial
From the course: Learning Linux Shell Scripting
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.