exercise4

Exercise 4. Write a shell script to store "I will learn Shill Scripting" in a variable and display on screen with each character on a separate line. You can do it with various ways but try to use minimum number of lines. 
Script: We used a variable 'a' to store the string and then by using for loop we fetch the character one by one and then displayed on terminal.
Output: So we got the line by line output of our string by  using for loop. Here we fetch the character one by one in 'chr' variable form 'a' and then displayed it. The loop will continue till all the characters will get displayed.
 
 

No comments:

Post a Comment