Timeline for answer to Loop through an array of strings in Bash? by Treethawat Thanawachiramate
Current License: CC BY-SA 3.0
Post Revisions
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 22, 2016 at 12:41 | comment | added | Alan Forsyth |
This one is clear and worked for me (including with spaces and variable substitution in the FilePath array elements) only when I set the IFS variable correctly before the FilePath array definition: IFS=$'\n' This may work for other solutions too in this scenario.
|
|
| Jul 3, 2015 at 4:03 | history | answered | Treethawat Thanawachiramate | CC BY-SA 3.0 |