I'm trying to write this script for an assignment - it's only the second one I've written so bear with me. 

As a part of this script, I need to be able to check if the first argument given matches the first word of file. If it does, exit with an error message, if it doesn't, append the arguments to the file. I understand how to write the if statement, but not how to use grep within a script. I understand that grep will look something like this

grep ^$1 schemas.txt

I feel like this should be much easier than I am making it. Any help appreciated. 

Update:
I'm getting an error too many arguments on the if statement. I got rid of the space between grep-q and then got an error binary operator expected. I've been poking around at it, but I don't see what it sees.

if [ grep -q ^$1 schemas.txt ]
then
        echo "Schema already exists. Please try again"
        exit 1
else
        echo "$@" &gt;&gt; schemas.txt
fi



Question: How do I make Microsoft Outlook show the padlock icon on private appointments in the calendar?
Answer: From: http://oit2.utk.edu/helpdesk/kb/entry/343/

Outlook 2010
In Calendar view, select either New Appointment or New Meeting. 
Create the appointment or meeting by filling out the window; click Save. 
Looking at your calendar, find the appointment or meeting and right-click on it; choose Private from the drop-down menu. 
When you view your calendar, you will see a lock on the private appointment or meeting; in Month view, the lock may be hidden due to the reduced size of each day’s calendar slot.

Aka a new and improved feature... which begs the question, if it's new, how can it be improved?