sed -i command for in-place editing to work with both GNU sed and BSD/OSX

OS X sed handles the -i argument differently to the Linux version. You can generate a command that might “work” for both by adding -e in this way: # vv sed -i -e ‘s|\(.*\)\.o:|$(OBJ_DIR)/\1.o $(OBJ_DIR)/\1.d $(TEST_OBJ_DIR)/\1_utest.o:|’ $@ OS X sed -i interprets the next thing after the -i as a file extension for a backup … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)