SyntaxFix
Write A Post
Hire A Developer
Questions
You can do like this:
#!/bin/bash v="some string.rtf" v2=${v::-4} echo "$v --> $v2"