find and update an meeting date from daily schelude and send reminder to members
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
We can certainly HELP you....post what you've written and tried so far, and we can assist. We are not going to write your script for you, though...there are many bash scripting tutorials you can easily find with Google: 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
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.
which is a different requirement to enabling someone to change the file content.Which are you trying to do?
Let's do one thing at a time.
Quote:
But i am not sure whether it is correct or not
Don't just guess, actually run it ie test the script; does it do what you want, if not why not?
This would be a good addition to the top of your script
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.