Labels

algorithms (22) Design Patterns (20) java (19) linux (14) Snippet (13) service mix (6) soa (4)

linux script to replace

replaces a list of properties in a directory /root/source

for y in `ls /source`;
do sed -f replace.sed /root/source/$y > ./tmp/$y;
done


replace.sed
---------------
s/__CLUSTERNAME__/grapesClus/g
s/__Place2__/Value2/g 



No comments:

Post a Comment

Search 24 Bytes