remove all files with no extension linux 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]
find . -name "*.bak" -type f -delete
import os
os.path.splitext(current)[0]