You might want to use egrep, it handles regex's a little better than straight grep. You could try something like.... ^(\s)\#(\s)define -----Original Message----- From: Janice Pickron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 1:26 PM To: [EMAIL PROTECTED] Subject: grep What regular expression would you pass to the grep (1) program to search for all the #define statements in file? Remember that there can be spaces or tabs both before and after the # sign. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]