Timeline for Delete the last character of a string using string manipulation in shell script
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 12, 2017 at 23:04 | comment | added | Joey T | This works well for Bash 4.1.2: ${t%?} for folks stuck with CentOS/RHEL 6.x | |
| S Sep 30, 2016 at 16:11 | history | suggested | Kenny Evitt | CC BY-SA 3.0 |
Add link to reference info.
|
| Sep 30, 2016 at 15:53 | review | Suggested edits | |||
| S Sep 30, 2016 at 16:11 | |||||
| Apr 14, 2016 at 18:15 | comment | added | steeldriver |
@afraisse ${parameter%word} removes the shortest suffix pattern matching word - see the Parameter Expansion section of man bash
|
|
| Apr 14, 2016 at 15:36 | comment | added | afraisse | Would you care to explain what is the magic behind '%?' ? | |
| Feb 1, 2016 at 9:59 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
added 59 characters in body
|
| Jul 13, 2014 at 14:43 | vote | accept | user3581976 | ||
| Jul 13, 2014 at 14:08 | history | answered | steeldriver | CC BY-SA 3.0 |