I am looking for a quick/easy way to split a string in ksh.
It has varied number delimeters (spaces) between each item.
example:
value1 value2 value3
Any suggestions/advice?
|
feedback
|
|
Using a for loop with the input string will split on whitespace.
Yields
or
Yields
| |||
|
feedback
|
|
You can use an array.
| |||
|
feedback
|