my favorite

2010/09/20

SED command : Replace string in corresponding files in place

It's used frequently but I always forgot how to type it =_=

find ./ -name XXXX -exec sed -i 's/old_string/new_string/' {} \;

1 comment:

huang47 said...

find ./ -name *.ros -exec sed -i "s/\\['shouldRender'\\]/-\\>shouldRender/g" {} \;

BIO

Taipei, GuTing, Taiwan

huang47 | personal

huang47 | personal