Answers for "remove all files with extension bash"

6

remove file extension bash

$ filename=foo.txt
$ echo "${filename%.*}"
foo
Posted by: Guest on May-21-2020
0

remove all files with extension bash

find . -name "*.bak" -type f -delete

# try this first to see what will be deleted
find . -name "*.bak" -type f
Posted by: Guest on October-20-2021

Code answers related to "remove all files with extension bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language