I am trying to find every file that has
$status=='access'||!Yii::app()->user->isGuest
and replace it with
$status=='access'
Is there an easy way to accomplish this in linux. I tried using the following example (which replaces windows with linux), but couldn't get it to work. It doesn't throw any errors.
grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g'
grep -rl "\$status=='access'||\!Yii::app()->user->isGuest
" ./ | xargs sed -i 's/\$status=='access'||\!Yii::app()->user->isGuest
/$status=='access'/g'