Last active
June 28, 2021 14:00
-
-
Save jhrcook/f63bec7bfeace0e0081820e155c7478a to your computer and use it in GitHub Desktop.
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
# An empty directory. | |
mkdir empty-dir | |
# A directory with files to delete. | |
mkdir bar | |
touch bar/someFile.txt | |
# Delete files in "bar/" | |
rsync -a --delete empty-dir/ bar/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment