Pattern Printing Challenge
In this challenge, you are required to generate a specific pattern based on user input using loops in a bash script.
Tasks
You need to complete the following task:
- Read a value from the user and create a pattern as mentioned below.
Requirements
You must meet the following requirements:
- Script name:
pattern2.sh
- Work directory:
~/project
- Familiarity with running loops in shell scripts
- Understanding how to execute a bash script
- Knowledge of how to change execute permission of a file
Example
5
Output
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
This challenge aims to help you understand the working of loops in a script.