diff options
author | Thomas Voss <mail@thomasvoss.com> | 2022-11-04 20:57:26 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2022-11-04 20:57:26 +0100 |
commit | e3d507ddcfef40772955c387d926bc685b349855 (patch) | |
tree | c5372af60be0f1679c68f157b276229679046255 /README.md | |
parent | 46f776efbc5f2cc02c31018da5f55491c97943b7 (diff) |
Add a “safety” section
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |