Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rm rf except one directory

#bash
shopt -s extglob
cd parent
rm -rf !(four)
Comment

PREVIOUS NEXT
Code Example
Shell :: in ubuntu both mouse pad key working same 
Shell :: how to rename a file in linux 
Shell :: run shell script linux 
Shell :: how to run a ipynb file in cmd 
Shell :: download dropbox on linux 
Shell :: how to uninstall global babel jest npm 
Shell :: create github repo with curl 
Shell :: apply stash git 
Shell :: tar.exe zip format 
Shell :: arrow folder file github 
Shell :: extract tar gz 
Shell :: unzip 7z cli 
Shell :: centos helm 
Shell :: docker copy file not found 
Shell :: deploy on heroku 
Shell :: TypeError: Could not load reporter "mochawesome" 
Shell :: git graph command 
Shell :: ubuntu turn off screen terminal 
Shell :: how to check date is older than x days in shell script 
Shell :: arch mirrorlist 
Shell :: sed tab to space 
Shell :: grep capture group 
Shell :: create new users and add them in group in linux 
Shell :: remove all gems installed 
Shell :: how to open folder in files from terminal linux 
Shell :: youtube video player react native 
Shell :: vim set color scheme in vimrc 
Shell :: docker connect usb device 
Shell :: vite command 
Shell :: default .gitignore file 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =