hello, I am writing a script to send email to all the users. Can anyone provide the syntax or internet source in reading line from a dir or text document?
if users are under /home like:
student1 student2 student3
student4 student5 student6
my try is:
mail -s "subject" email@example.com"
. (can anyone also tell how to end sending mail in the script? . + return key is the way to send in command promp,, what about in the script? for the return key)
done < `cd /home`