Replace apache envvars with sed command -


hi guys newbie sed editor , need replace follow line on envvars file:

current line

export apache_run_user=www-data 

i need replace

export apache_run_user=admin 

i tried

sed -i "s/export apache_run_user=www-data/export apache_run_user=nbadmin/"envvars 

this not work. there space between word export , apache. can please sed? in advance.

you missing space before filename.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

VBA function to include CDATA -

php - Warning: file_get_contents() expects parameter 1 to be a valid path, array given 16 -