Updated SC2002 (markdown)

Mingye Wang
2015-09-18 21:54:51 -04:00
parent fcc0010ff9
commit 19a6c3b72d

@@ -4,13 +4,14 @@
```sh
cat file | tr ' ' _ | grep a_
cat file | ( while read i; do echo "${i%?}"; done )
```
### Correct code:
```sh
tr ' ' _ < file | grep a_
< file tr ' ' _ | grep a_ # **simple commands only, won't work with compounds
< file tr ' ' _ | grep a_ # **simple commands only, won't work with compounds
( while read i; do echo "${i%?}"; done ) < file # postfix works for everything
```
### Rationale: