Below is what I am trying to do. I have a variable which contains a list of commands seperated by ":". While trying to use a for loop to get each command, it doesnt retrun the correct results
Example:
Code:
var="command -1:command -2*: command something*" for c in `echo $var | tr ':' ' '` do echo $c done Instead of getting the below command
Leave a comment: