Bash gnu

Replacements

#!/bin/bash
input="I love Suzi and Marry"
replacement="Sara"
echo "${input/Suzi/$replacement}"
# 'I love Sara and Marry'

# To replace all occurrences, use ${parameter//pattern/string}:

msmtp Send mail via commandline Configure it like arch wiki advises. Then just echo -e "Subject: Hello\nI like you." | msmtp bob@example.com Elaborate example: printf "To: ala@ela.com\nFrom: me@email.com\nSubject: Test \nThis is body." | msmtp ala@ela.com tempmail Bash client for 1secmail (temporary mail) Github. #...

Port forwarding

# Remote to local
ssh -L local_port:remote_address:remote_port username@server.com
# Local to remote
ssh -R remote_port:local_address:local_port username@server.com