Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove file extension bash

$ filename=foo.txt
$ echo "${filename%.*}"
foo
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #file #extension #bash
ADD COMMENT
Topic
Name
6+4 =