bash loop though multi line variable | Sany's Linux and Open Source Blog

bash loop though multi line variable | Sany's Linux and Open Source Blog

瀏覽:703
日期:2024-10-11
I have a multi line variable in my bash script and wanted to iterate through each line of a variable. To do this task I am using while loop. Following is my variable: var="a b c d e" As I mentioned to loop through my multi line variable(var) I am using wh...看更多