hello, help me pls.
Hi,
can someone run this ans for me pls?
tell me if it is correct. Because my linux software is not working.
1. A system administrator maintains a file with birthdates of all users in /etc/birthdates. The file contains a line for each user, and is updated with the addition of every new user. Each line /etc/birthdates has the following format:
login name: real name: birthdate
#!/bin/sh
DATE=`date '+%d-%m-%y'`
USERS=`grep $DATE /etc/bithdates awk -v FS=":" '{ print $1 }'
for USER in $USERS
do
echo "Happy birthday !" | mail $USER
done
|