Timeline for Split string using IFS
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 10, 2017 at 11:52 | comment | added | RomanPerekhrest | @StéphaneChazelas, it's different. You are showing just step with converting a string into array. But my one-line is dedicated to cover all: splitting into fields, processing and outputting. I'm not compete with your answer, they are just different | |
| Oct 10, 2017 at 11:49 | comment | added | Stéphane Chazelas |
The same could be done with IFS=-. read -r a array <<< "$IN"
|
|
| Oct 10, 2017 at 11:41 | history | edited | RomanPerekhrest | CC BY-SA 3.0 |
added 108 characters in body
|
| Oct 10, 2017 at 10:43 | history | edited | RomanPerekhrest | CC BY-SA 3.0 |
edited body
|
| Oct 10, 2017 at 10:36 | history | answered | RomanPerekhrest | CC BY-SA 3.0 |