Which command emails the contents of the myconfigfile file to [email protected]?
myconfigfile
cat myconfigfile | mail [email protected] passes the file's contents through standard input to mail, which uses that input as the email message body and sends it to the specified recipient.
cat myconfigfile | mail [email protected]
mail
Community Discussion