Timeline for Finding numbers in a command output and save it as variables
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 12, 2018 at 17:09 | history | edited | Kusalananda♦ | CC BY-SA 4.0 | added 94 characters in body |
| Sep 12, 2018 at 17:06 | comment | added | Kusalananda♦ | @Goro Ah, just managed to find that the -t option to readarray was added in bash 4.3. It strips the delimiter (newlines by default) off from the read data. Without -t, each array element would have a trailing newline. | |
| Sep 12, 2018 at 17:04 | comment | added | Kusalananda♦ | @Goro In that case, I see no reason why readarray would not be a valid command, unless you are in fact running some other shell that is not bash. | |
| Sep 12, 2018 at 16:54 | comment | added | user88036 | @ Kusalananda. Thanks for the response. No it is 4.2.46(2)-release | |
| Sep 12, 2018 at 16:51 | comment | added | Kusalananda♦ | @Goro Your bash is older than release 4.0 (2009)? | |
| Sep 12, 2018 at 16:01 | comment | added | user88036 | Thanks, Is there any alternative to the command readarray . I don't have this command in my system! is readarray equivalent to read. Thanks! | |
| Sep 12, 2018 at 15:43 | history | edited | Kusalananda♦ | CC BY-SA 4.0 | edited body |
| Sep 12, 2018 at 15:23 | history | answered | Kusalananda♦ | CC BY-SA 4.0 |