open all files that contain “/sdk/” for edit:
grep -Rl "/sdk/" . | xargs p4 edit
replace all occurences of /sdk/ with /new_sdk/
grep -Rl "/sdk/" . | xargs sed -i "s#/sdk/#/new_sdk/#g"
open all files that contain “/sdk/” for edit:
grep -Rl "/sdk/" . | xargs p4 edit
replace all occurences of /sdk/ with /new_sdk/
grep -Rl "/sdk/" . | xargs sed -i "s#/sdk/#/new_sdk/#g"