Bash: trim a parameter from both ends
Posted
by Andrey Kazak
on Stack Overflow
See other posts from Stack Overflow
or by Andrey Kazak
Published on 2010-06-16T06:37:09Z
Indexed on
2010/06/16
6:42 UTC
Read the original article
Hit count: 459
Greetings!
This are well know Bash parameter expansion patterns:
${parameter#word}, ${parameter##word}
and
${parameter%word}, ${parameter%%word}
I need to chop one part from the beginning and anoter part from the trailing of the parameter. Could you advice something for me please?
© Stack Overflow or respective owner