From 64c641eff839b2a4163196af4f702588f8d8fbd9 Mon Sep 17 00:00:00 2001 From: Tom Grace Date: Thu, 19 Sep 2024 09:48:04 +0100 Subject: [PATCH] Added a clarification that the brackets in find expressions must be separated to avoid confusing errors --- SC2146.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SC2146.md b/SC2146.md index c009910..9f0a86e 100644 --- a/SC2146.md +++ b/SC2146.md @@ -11,6 +11,7 @@ find . -name '*.avi' -o -name '*.mkv' -exec cp {} /media \; ```sh find . \( -name '*.avi' -o -name '*.mkv' \) -exec cp {} /media \; ``` +Note that the space between `\(` and `-name` in this command is significant. ### Rationale: