Remove file extension in bash
f="foo.bar"
basename="${f%.*}"
Written by Gustavo Gómez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#