script to edit file directly (sed -i)