Timeline for How to get a substring based on index of another string
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 17, 2016 at 23:28 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |
fixed the case of lines containing more commas, and while I'm at it made the script more robust in case the number isn't followed by a comma
|
| Mar 17, 2016 at 18:40 | comment | added | Bajal | Oh ok, I misunderstood. It is clear to me now. Thanks again. | |
| Mar 17, 2016 at 17:56 | comment | added | choroba |
@Bajal: Actually, no. * is a wildcard that matches anything. See Parameter Expansion in man bash.
|
|
| Mar 17, 2016 at 17:55 | comment | added | Bajal |
btw, I assume you meant to say * from the right (instead of %)
|
|
| Mar 17, 2016 at 17:54 | comment | added | Bajal | Thank you, this worked well for me as a pure bash solution. | |
| Mar 17, 2016 at 17:54 | vote | accept | Bajal | ||
| Mar 17, 2016 at 17:20 | history | answered | choroba | CC BY-SA 3.0 |