find and update an meeting date from daily schelude and send reminder to members
I am new to Linux.I need to generate a shell script to find and update the meeting event date from the daily schedule and send the reminder to all the meeting members.
my inputs are like following: Event.data # EventID,FirstName,LastName,MeetingDate,EmailAddress 1,Jack,Chen,02/10/12,hha001@gmail.com 2,Emily,Weiss,02/11/12,eweiss@msn.com 3,Mary,Gonzalas,02/12/12,Mgonz@gmail.com 1,Steven,Sanabria,02/10/12,Ssana@gmail.com 4,Laura,Jimenez,02/14/12,LJime@yahoo.com 4,Luis,Rodriguez,02/14/12,Lrod@yahoo.com 2,Alex,Alonso,02/11/12,Aalon@msn.com Reminder.email Dear __FULLNAME__: This is a kindly remainder that meeting __EventID__ will be reschedule to __Date__. Best Regards, XXX If anybody can help me to solve this or give me any hints it would be very greatful. I am just try hard but i've no clue. Thanks |
Quote:
http://tldp.org/LDP/abs/html/ If you're looking for hints, you can use cut or awk to split the lines apart, and a while loop to read each line, until you hit the end of file. The mailx command can be used to send mail, and all of these commands have man pages. |
Thanks. So far i've done this.But i am not sure whether it is correct or not
files1="./Event.data" files2="./Reminder.email" for D in $files1;do cut -d "," -f1 $D done echo " Enter event ID from the above list" read ID echo "Enter changed date in the format MM/DD/YY" read date echo "Changed date is $date echo "selected records are:" grep "^$ID" $files1 |
Quote:
Let's do one thing at a time. Quote:
This would be a good addition to the top of your script Code:
#!/bin/bash http://rute.2038bug.com/index.html.gz http://tldp.org/LDP/Bash-Beginners-G...tml/index.html http://www.tldp.org/LDP/abs/html/ |
Thanks. I am working on it.
|
All times are GMT -5. The time now is 08:04 AM. |