Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux remove all files same extension in directory

find . -type f -iname *.zip -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

linux delete all files except extension

find . -type f ! -name '*.txt' -delete
Comment

PREVIOUS NEXT
Code Example
Shell :: Change cursor in git bash 
Shell :: To Move all files, but not folders: 
Shell :: How to view unit file content with systemctl command 
Shell :: enter your internal repository url 
Shell :: mac fill hard drive with random data 
Shell :: powershell task scheduler 
Shell :: ssh local 
Shell :: start appwerite 
Shell :: step2 pgadmin ubuntu 20.04 
Shell :: count the number of words in a file 
Shell :: make a question in bash script 
Shell :: filesize in linux 
Shell :: powershell get wifi password 
Shell :: git add exclude 
Shell :: how to install tar.xz file in ubuntu 
Shell :: switching branch in git 
Shell :: unzip gzip 
Shell :: mysql password inline cli 
Shell :: git short version hash [by index] 
Shell :: how to copy one file to multiple directories in linux 
Shell :: linux audio auto mute issue 
Shell :: wget every ipv4 
Shell :: git server 
Shell :: installer robot 3T ubuntu 
Shell :: install extensions devcontainer.json for codespaces 
Shell :: jre-8u331-linux-x64.rpm 
Shell :: git commit remove and restore 
Shell :: how to do a conditional check in shell 
Shell :: linux enable numlock on boot up 
Shell :: linux bash script skip first parameter 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =