You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Technical Recommendations and Standards Used in This Guide
Recommended Environment
Heredoc
cat <<EOF >file.txtPasswords are like underwear:- You shouldn’t leave them out where people can see them.- You should change them regularly.- You shouldn’t loan them out to strangers.EOF
Passwords are like underwear:
- You shouldn’t leave them out where people can see them.
- You should change them regularly.
- You shouldn’t loan them out to strangers.
# export an environment variableexport ARGUMENT="world"# create a file with the variable expanded
cat <<EOF >file.txtHello, $ARGUMENT!EOF
Hello, world!
# create a file with the variable unexpanded
cat <<EOF >file.txtHello, \$ARGUMENT!EOF
Hello, $ARGUMENT!
Long Commands
echo"This is a long command that \spans multiple lines."
echo"This is a long command that spans multiple lines."