Updated SC2011 (markdown)

Michael Diamond
2020-02-21 21:40:49 -08:00
parent d1d127b9f6
commit 8332b2ed57

@@ -3,17 +3,17 @@
### Problematic code: ### Problematic code:
```sh ```sh
ls | xargs wc -w ls | xargs -n1 wc -w
``` ```
### Correct code: ### Correct code:
```sh ```sh
find . -maxdepth 1 -print0 | xargs -0 wc -w find . -maxdepth 1 -print0 | xargs -0 -n1 wc -w
``` ```
```sh ```sh
find . -maxdepth 1 -print0 -exec wc -w find . -maxdepth 1 -type f -exec wc -w {} \;
``` ```
### Rationale: ### Rationale: