From 04323cc7be3c51af116c5dcfe66fd3d4faea2aca Mon Sep 17 00:00:00 2001 From: zxcxz7 Date: Thu, 26 May 2016 23:21:31 +0900 Subject: [PATCH] Correct paths --- README.md | 4 ++-- tips.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4e30d1b..f2ac52b 100644 --- a/README.md +++ b/README.md @@ -698,7 +698,7 @@ git rebase --interactive HEAD~2 ## List of git repositories in multiple directories. ```sh -find -E ${targetdir} \( -regex '.*/\.git +find -E /path1 /path2 /path3 \( -regex '.*/\.git -not -regex '.*/\..*/\.git \) -type d -print0 | xargs -0 -I {} dirname {} ``` @@ -706,7 +706,7 @@ find -E ${targetdir} \( -regex '.*/\.git __Alternatives:__ ```sh -find ${targetdir} -regextype posix-egrep \( -regex '.*/\.git +find /path1 /path2 /path3 -regextype posix-egrep \( -regex '.*/\.git -not -regex '.*/\..*/\.git \) -type d -print0 | xargs -0 -I {} dirname {} ``` diff --git a/tips.json b/tips.json index 6aa8bf7..d9ed1d3 100644 --- a/tips.json +++ b/tips.json @@ -313,6 +313,6 @@ "tip": "git rebase --interactive HEAD~2" }, { "title": "List of git repositories in multiple directories.", - "tip": "find -E ${targetdir} \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}", - "alternatives": ["find ${targetdir} -regextype posix-egrep \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}"] + "tip": "find -E /path1 /path2 /path3 \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}", + "alternatives": ["find /path1 /path2 /path3 -regextype posix-egrep \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}"] }]