replace some bash only cond with grep cond