Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rm except one file

shopt -s extglob 
rm !(file.txt)
Comment

PREVIOUS NEXT
Code Example
Shell :: install heroku cli on linux 
Shell :: install pyramid 
Shell :: file explorer shortcut 
Shell :: linux package path 
Shell :: pm2 start yarn start 
Shell :: cut first word 
Shell :: bash count character in variable 
Shell :: how to remove node modules from github 
Shell :: replace first occurence of substring 
Shell :: robotframework seleniumlibrary install 
Shell :: bash scripting string comparison 
Shell :: merge gif with mp4 using ffmpeg 
Shell :: install openvpn client ubuntu 
Shell :: az login acr -n 
Shell :: grep multiple 
Shell :: bash wait for input to continue 
Shell :: linux tar gz 
Shell :: docker created network 
Shell :: reset to origin 
Shell :: command to undo in emacs 
Shell :: docker fatal: not a git repository (or any of the parent directories): .git 
Shell :: linux command create folder if not exist 
Shell :: bash delete a range of lines from a file 
Shell :: change default kube editor nano 
Shell :: ubuntu change directory owner 
Shell :: apply gitignore after commit 
Shell :: list of files in git commit 
Shell :: linux home dir shortcut 
Shell :: gh login with github 
Shell :: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =