delete a specific foemat files in a folder linux command code example
Example 1: rm files with extension
find . -name "*.bak" -type f -delete
Example 2: Remove file extension from file within dir Ask Question
import os
os.path.splitext(current)[0]