4 ms·
There are better ways to split a string on spaces in Bash than calling external tools. For example, the following will split the line as intended, and put the r
by gsliepen 5y ago
There are better ways to split a string on spaces in Bash than calling external tools. For example, the following will split the line as intended, and put the results in variables:
read name state roles ages version <<< "$result"