-
-
Save jorgemanrubia/faea40d1a0b9f5218e7974d06a785f13 to your computer and use it in GitHub Desktop.
ChatGPT prompt 4
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
ls -tp /path/to/directory | grep '/$' | tail -n +11 | xargs -I{} rm -r /path/to/directory/{} |
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
could you rewrite that as a single-line command to run a directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment