Advertisement
Advertisement
| 05.25.2008 at 09:19AM PDT, ID: 23431354 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
#!/bin/sh
#
#Search the code Key, KEY or key inside the message.
#
#CODE that we want to search
SEARCH= Key | key | KEY
#
#Text message that we want to send
TEXT="Your Good!"
#
#
CODE=`/bin/cat $FILE | grep "$SEARCH"`
#
#if code is not empty reply with the message "Your Good!"
if [ "$CODE" == "$SEARCH" ]; then
echo "$TEXT"
fi
|