From 59c39586cf17fae0bffd3cde89cb3c154a1d7c82 Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Sun, 10 Jan 2021 14:19:02 +0800 Subject: [PATCH] Added command identifier --- find.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find.md b/find.md index 22a2a97..7a296ad 100644 --- a/find.md +++ b/find.md @@ -316,7 +316,7 @@ $ find . -type f -name 'file*' -exec sh -c 'x="{}"; mv "$x" "${x}.bak"' \; ### Find and move ```shell script -find . -name '*.mp3' -exec mv {} /tmp/music \; +$ find . -name '*.mp3' -exec mv {} /tmp/music \; ``` Find and move it to a specific directory