Viewing 1 to 2 of 2 items
Tag Archives: Jsmith

How do I send email from a Sun System (use mailx)?

#!/bin/sh # # Purpose: Demonstrate how to send an email from UNIX using mailx. ############################################################ # Example 1 – Simple: echo “This is the body.”| mailx -s “mailx Test1” jsmith@abc.com # Example 2 – Using Variables: SUBJECT=”mailx Test2″ EMAIL_ADDRESS=”jsmith@abc.com” BODY=”This is the body of the message.” echo “$BODY” | mailx -s “$SUBJECT” “$EMAIL_ADDRESS” # Example 3  Full Article…

0

50 Most Frequently Used UNIX / Linux Commands

  2. grep command examples Search for a given string in a file (case in-sensitive search). $ grep -i “the” demo_file Print the matched line, along with the 3 lines after it. $ grep -A 3 -i “example” demo_text Search for a given string in all files recursively $ grep -r “ramesh” * More grep  Full Article…

0