Skip to content

Commit

Permalink
Add here-doc example:
Browse files Browse the repository at this point in the history
- closes cheat#95
  • Loading branch information
EmilySeville7cfg authored and EmilySeville7cfg committed Dec 5, 2022
1 parent 8eef132 commit b493ee3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bash
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ echo ${PIPESTATUS[0]} # replace 0 with N

# To create a lockfile:
( set -o noclobber; echo > my.lock ) || echo 'Failed to create lock file'

# To redirect block of text with variables being substituted and other expansions performed to some command:
<command> << DELIMITER
<contents>
DELIMITER

0 comments on commit b493ee3

Please sign in to comment.