Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rm files with extension

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

Delete files in folder by extension

import os 

for file in os.scandir(path):
    if file.name.endswith(".bak"):
        os.unlink(file.path)
Comment

PREVIOUS NEXT
Code Example
Shell :: kill port 3000 
Shell :: chromium for mac 
Shell :: install go ubuntu 
Shell :: remmina ubuntu 
Shell :: unzip centos 
Shell :: how to install pip on mac 
Shell :: bash cat remove special characters 
Shell :: gzip folder with tar 
Shell :: apt-get install ps 
Shell :: how to exit git branch 
Shell :: install kazam ubuntu 20.04 
Shell :: github desktop for ubuntu 
Shell :: restart xampp linux 
Shell :: login to git bash 
Shell :: how to uninstall vlc in ubuntu 
Shell :: start emulator from command line 
Shell :: clean docker images and containers 
Shell :: bash: npm: command not found 
Shell :: installing eslint globally 
Shell :: powershell check if elevated 
Shell :: install particular version of laravel 
Shell :: remove orphan packages manjaro 
Shell :: gensim install 
Shell :: bash return n characters after match 
Shell :: show port list in centos 
Shell :: git setup 
Shell :: .gitignore file not ignoring the file 
Shell :: ufw see open ports 
Shell :: macos clear dns cache 
Shell :: install youtube-dl ubuntu 20.04 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =