Created
February 21, 2018 20:51
-
-
Save arodbits/8a443f046f884308c033fe3d24e9a051 to your computer and use it in GitHub Desktop.
delete all files in directory except any subdirectory
This file contains hidden or 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
find . -maxdepth 1 -type f -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment