Delete a pattern from the end of a string
suggest changeShortest match:
$ a='I am a string'
$ echo "${a%a*}"
I am
Longest match:
$ echo "${a%%a*}"
I
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents