Splitting a string in bash
is easy with the help of the internal field separator (IFS
).
Bash string split using IFS
|
|
The above method does not interfere with the IFS
global variable since it’s only set for that single invocation.
Splitting a string in bash
is easy with the help of the internal field separator (IFS
).
|
|
The above method does not interfere with the IFS
global variable since it’s only set for that single invocation.