Delete a pattern from the beginning of a string

suggest change

Shortest match:

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

Longest match:

$ echo "${a##*a}"
 string

Feedback about page:

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



Table Of Contents