From 50f03c919f7e1fa1b0ac549e30029cda7b8c03a1 Mon Sep 17 00:00:00 2001 From: Patrick Wagner Date: Fri, 1 Dec 2023 18:55:25 +0100 Subject: [PATCH] Update FreeBSD.md --- FreeBSD.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FreeBSD.md b/FreeBSD.md index 81619d9..0787ece 100644 --- a/FreeBSD.md +++ b/FreeBSD.md @@ -49,3 +49,13 @@ zfs send -Rv old_pool/@relocate | zfs receive -d new_pool/ ! ``` + +### For loop to copy files and rename in destination + +```sh +foreach f (*.jpg) +cp "$f" /destination/newname-"$f" +end +``` + +Use quotes if filenames have spaces \ No newline at end of file