Last active
September 21, 2023 10:13
-
-
Save qvoid/60c92aa4456a1fb3d24ddbca23b70e13 to your computer and use it in GitHub Desktop.
remove file in reverse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## use grep | |
``` | |
rm `ls | grep -v "file_name_wanted_to_be_kept"` | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment