From da11d4c8ff2bd8c2ff4d9cd51e41c7affcafcd11 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 3 Aug 2015 17:07:04 -0500 Subject: [PATCH] Add Do Not Overwrite Existing Files as a zsh til. --- README.md | 1 + zsh/do-not-overwrite-existing-files.md | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 zsh/do-not-overwrite-existing-files.md diff --git a/README.md b/README.md index 3983475..0f234d2 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Check If A Port Is In Use](zsh/check-if-a-port-is-in-use.md) - [Clear The Screen](zsh/clear-the-screen.md) - [Create A File Descriptor with Process Substitution](zsh/create-a-file-descriptor-with-process-substitution.md) +- [Do Not Overwrite Existing Files](zsh/do-not-overwrite-existing-files.md) - [Killing A Frozen SSH Session](zsh/killing-a-frozen-ssh-session.md) - [List All The Say Voices](zsh/list-all-the-say-voices.md) - [Repeat Yourself](zsh/repeat-yourself.md) diff --git a/zsh/do-not-overwrite-existing-files.md b/zsh/do-not-overwrite-existing-files.md new file mode 100644 index 0000000..d7b2740 --- /dev/null +++ b/zsh/do-not-overwrite-existing-files.md @@ -0,0 +1,4 @@ +# Do Not Overwrite Existing Files + +When using the `cp` command to copy files, you can use the `-n` flag to make +sure that you do not overwrite existing files.