From e3d507ddcfef40772955c387d926bc685b349855 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 4 Nov 2022 20:57:26 +0100 Subject: Add a “safety” section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'README.md') 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 -- cgit v1.2.3