use $() to prevent grep from [] error