How to remove postfix from a string in bash? How to remove postfix from a string in bash? shell shell

How to remove postfix from a string in bash?


You can use:

name="${file%$postf}"echo "$name"abcabc