In linux! 1. Write a shell script is_equal that takes a number as input and checks if it is equals to 10, greater than 1
Posted: Fri May 20, 2022 12:50 pm
In linux!
1. Write a shell script is_equal that takes a number as input
and checks
if it is equals to 10,
greater than 10 and less than 10.
2. Write a shell script print_num that takes a number as input and
use
while loop to print values
decreasing order. ex. input=10, output: 10 9 8 7 6 5 4 3 2 1
3. Write a shell script display_even_digits that takes a number as
input
and use while loop to
display all the even digits within that number. ex input: 10
output: 2 4 6
8 10
1. Write a shell script is_equal that takes a number as input
and checks
if it is equals to 10,
greater than 10 and less than 10.
2. Write a shell script print_num that takes a number as input and
use
while loop to print values
decreasing order. ex. input=10, output: 10 9 8 7 6 5 4 3 2 1
3. Write a shell script display_even_digits that takes a number as
input
and use while loop to
display all the even digits within that number. ex input: 10
output: 2 4 6
8 10