Shell script to print numbers 1 to 20 using for and while looping statements

Опубликовано: 20 Февраль 2026
на канале: Swetha Suresh
2,722
29

In this video we will be learning
how to use looping statements such as for and while
loop in shell script with an example to print
numbers from 1 to 20
Some shortcuts and keys used
Ctrl+Alt+T --- To open Terminal Window
i --- To Switch to Insert mode in Vi editor.
Esc ---Switch to Command mode.
:w -- Save and continue editing.
:wq or ZZ -- Save and quit/exit vi editor.
`: Single quote is below esc key
Make sure to leave proper space for a expression