Answers for "how to remove certain file types from a directory in bash"

6

rm files with extension

find . -name "*.bak" -type f -delete
Posted by: Guest on September-09-2020
2

ubuntu delete all files with extension

cd <dir>
find . -type f -iname *.jpg -delete
Posted by: Guest on June-07-2020

Code answers related to "how to remove certain file types from a directory in bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language