File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,8 @@ Run `duplo --help` on the command line to see the detailed options.
2323### Passing files using ` stdin `
2424
2525``` bash
26- # unix
27- > find . \( -iname " *.cpp" -or -iname " *.h" \) | docker run --rm -i -w /src -v $( pwd) :/src duplo - out.txt
28-
29- # windows
30- > Get-ChildItem -Include " *.cpp" , " *.h" -Recurse | % { $_ .FullName } | docker run --rm -i -w /src -v $( pwd) :/src duplo - out.txt
26+ # Docker on unix
27+ > find . -type f \( -iname " *.cpp" -or -iname " *.h" \) | docker run --rm -i -w /src -v $( pwd) :/src dlidstrom/duplo - out.txt
3128```
3229
3330` duplo ` will write the duplicated blocks into ` out.txt ` .
@@ -37,15 +34,13 @@ Run `duplo --help` on the command line to see the detailed options.
3734` duplo ` can analyze files specified in a separate file:
3835
3936``` bash
40- # unix
37+ # Docker on unix
4138> find . -type f \( -iname " *.cpp" -o -iname " *.h" \) > files.lst
42- > docker run dlidstrom/duplo files.lst out.txt
43-
44- # windows
45- > Get-ChildItem -Include " *.cpp" , " *.h" -Recurse | % { $_ .FullName } | Out-File -encoding ascii files.lst
46- > docker run dlidstrom/duplo.exe files.lst out.txt
39+ > docker run --rm -i -w /src -v $( pwd) :/src dlidstrom/duplo files.lst out.txt
4740```
4841
42+ Again, ` duplo ` will write the duplicated blocks into ` out.txt ` .
43+
4944## Feedback and Bug Reporting
5045
5146Please open a GitHub issue to discuss feedback,
You can’t perform that action at this time.
0 commit comments