Wednesday, February 7, 2018

replace all occurs of "PRJ_DIR" into "PRJ_PATH"


replace all occurs of "PRJ_DIR" into "PRJ_PATH"

grep
-r, --recursive           like --directories=recurse
-l, --files-with-matches  print only names of FILEs containing matches


grep -rl PRJ_DIR ./ | xargs sed -i 's/PRJ_DIR/PRJ_PATH/g'

No comments:

Post a Comment