CVS + grep output to file
I'm having trouble with cvs and grep. I want to run cvs update to check for changed files while using grep and outputting the list of changed files to a log file/variable.
My current command is from the script prior to me editing it.
cvs -n update -APd 2>&1 | egrep ^U" >> $EMAILMESSAGE
I have tried this while running through the script and from the command line outputting to a test file, no matter which command I try the output file is always empty.