ubuntu remove all except
# delete all except the filename
$ rm -v !("filename")
# if you are using a loop
shopt -s extglob
rm -rf !("abc.txt" | "abc.log" ) # others will be removed except these two
shopt -u extglob
$ rm -v !("filename")
Also in C++:
- how to I display powershell function code
- unzip ubuntu
- deploy to firebase using trivis
- CocoaPods could not find compatible versions for pod "razorpay_flutter" when running pod install
- github get email address
- rename a running docker container
- compress folder pigz
- git pull vs rebase
- npm install webpack server
- change wallpaper command line linux
- install graphene federation
- install docker compose homebrew
- count number of files linux command
- linux high load send mail
- jango.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module
- apt install xfce4-xkb-plugin
- ubuntu remove all except
- change password ubuntu 20.04
- INSTALL VMwareTools on terminal ap=get
- linux history command
- decompress bz2
- what all should be added to gitignore for django project
- make a commit with past date
- uniinstall nginx