I already told you what you need to do, but Ill give you some more step by step instructions.
Open TextEdit and goto the prefereces. Change the "Rich Text" to "Plain Text". Under the "Open and Save" options, check the boxes for "Save files as Read & Write", "Overwrite read-only files". Uncheck "Add ".txt" extension to plain text files".
Now in TextEdit add the following:
<?xml version="1.0" encoding="UTF-8"?>
MyProject
$HOME/nreal
NR_ICON_PATH
$HOME/nreal/icons
NR_INCLUDE_PATH
$HOME/nreal
NR_SHAKE_LOCATION
/Applications/Shake
PATH
/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Tools:/Applications/Alias/maya6.5/Maya.app/Contents/bin:/Applications/Shake/shake.app/Contents/MacOS:
Now save it as environment.plist and copy it into a new folder called "MacOSX" in your home directory (Everything is case sensitive in unix, so make sure you capitalize those letters in the name). Now change the name of it to .MacOSX and the folder will dissapear (files and folder with a "." in front of it are hidden in user space). Now log out and log back in and hopefully your shell will run shake properly.