1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-22 18:18:58 +00:00

Correct paths

This commit is contained in:
zxcxz7 2016-05-26 23:21:31 +09:00
parent 55e2d4fa75
commit 04323cc7be
No known key found for this signature in database
GPG Key ID: 033E841CB448FB47
2 changed files with 4 additions and 4 deletions

View File

@ -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 {}
```

View File

@ -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 {}"]
}]