From c9db74bfd4f315424e202358f71f776b61acea46 Mon Sep 17 00:00:00 2001 From: Tom Eichlersmith <31970302+tomeichlersmith@users.noreply.github.com> Date: Tue, 30 Aug 2022 08:04:35 -0500 Subject: [PATCH] add md5sum example to README this includes a statement that `fd` will not interlace or garble the terminal output from its multiple threads --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 2c89497..8fa34e0 100644 --- a/README.md +++ b/README.md @@ -206,6 +206,13 @@ fd -e jpg -x convert {} {.}.png Here, `{}` is a placeholder for the search result. `{.}` is the same, without the file extension. See below for more details on the placeholder syntax. +The terminal output of commands run from parallel threads using `-x` will not be interlaced or garbled, +so `fd -x` can be used to rudimentarily parallelize a task run over many files. +An example of this is calculating the checksum of each individual file within a directory. +``` +fd -x md5sum +``` + #### Placeholder syntax The `-x` and `-X` options take a *command template* as a series of arguments (instead of a single string).