Thursday, January 28, 2016

Bash command to insert some property on second line

sed -i '2iconnector=value' `grep -L "connector=" client-*.properties`
2i means insert on line 2 what follows

the command with grep is to retrieve files that do not have the property

No comments:

Post a Comment