escape | in grep call when generating tree current