aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-04 20:57:26 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-04 20:57:26 +0100
commite3d507ddcfef40772955c387d926bc685b349855 (patch)
treec5372af60be0f1679c68f157b276229679046255 /README.md
parent46f776efbc5f2cc02c31018da5f55491c97943b7 (diff)
Add a “safety” section
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index 65053b9..3c24a13 100644
--- a/README.md
+++ b/README.md
@@ -65,4 +65,22 @@ ZZ " Save and quit
lowercased our filenames, and all it took was 15 keypresses (that includes the
enter key, and saving the file)!
+## Safety
+
+Another advantage of `mmv` is that it’s a lot safer than your typical for-loop,
+or embarassingly enough even most file renaming tools I find online (lol). What
+do I mean by “safer”? Well consider that we want to make the following very
+simple file renamings:
+
+```
+foo -> bar
+bar -> foo
+```
+
+Most tools I’ve come across for renaming files will rename `foo` to `bar`, and
+then _oops!_, the original `bar` file no longer exists and we just lost our
+data! Even if you were to do this manually (imagine a lot more files) you would
+need to go and move everything to a temporary directory, and move them back, and
+it’s kind of just a pain to do manually. Luckily `mmv` handles this for you!
+
[1]: https://superuser.com/q/29111