Add Heredoc section

Stavros Ntentos
2019-05-27 15:37:52 +03:00
parent 1bf11c91c4
commit 3967100fd9

@@ -251,6 +251,21 @@ command > file 2>&1 or command 2>&1 | othercommand
No Comments / Exceptions
### Heredoc
Change:
```
sed 's/some_replacement//g' <<< "${var}"
```
To:
```
printf '%s' "${var}" | sed 's/some_replacement//g'
```
No Comments / Exceptions
## Exception
Depends on what your expected POSIX shell providers would use.