|
bash string processing
If the bash input parameter $1 is in the format "xyznnnnn", where "xyz" is fixed and "nnnnn" can be varied, how to extract the remaining of the string "nnnnn"?
e.g.
If input is "xyzabc", then extracted string should be "abc".
If input is "xyz12345678", then extracted string should be "12345678".
Thanks in advance.
|