Delete a pattern from the end of a string

suggest change

Shortest match:

$ a='I am a string'
$ echo "${a%a*}"
I am

Longest match:

$ echo "${a%%a*}"
I

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents