Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash rm all except

$ shopt -s extglob 
$ rm -- !(keepOnlyThisFile.txt)
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu update 
Shell :: rclone gui 
Shell :: git push ci skip 
Shell :: shebang line 
Shell :: How to download Citrix Workspace for Ubuntu 
Shell :: git remove untracked files 
Shell :: Cask adoptopenjdk8 exists in multiple taps: 
Shell :: cmd rename multiple files 
Shell :: install entityframeworkcore nuget in asp.net core 3.0 
Shell :: kubectl exec bash 
Shell :: git log filter merge commits 
Shell :: add windows service powershell 
Shell :: wkhtmltopdf blocked access to file 
Shell :: windows 10 path to wsl 
Shell :: git push with gpg key 
Shell :: grant current user access to /dev/kvm 
Shell :: ubuntu server set static ip 
Shell :: Kali - How to Uninstall Software on Kali Linux 
Shell :: switch installed linx to wsl2 
Shell :: git clone ssh key 
Shell :: homebrew version 
Shell :: debian bullseye install nvm 
Shell :: helm install 
Shell :: install npm colors 
Shell :: git stash with a message 
Shell :: run docker compose 
Shell :: how to make file in powershell 
Shell :: aws cli s3 list buckets 
Shell :: docker-compose build 
Shell :: git create new branch from current 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =