Search Results

Search: Posts Made By: filmguy
22,753
Posted By filmguy
Escaping quotes??
OK so how do I do that??

sed 's!\$db_url =.*!$db_url = '"'"'mysql://$dbuser:$dbpass@localhost/$dbase'"'"';!' file



I know nothing about sed really so how do I get the above statement to...
22,753
Posted By filmguy
Sed replacing a whole line with a new line
I am needing to replace a whole line of code in a file with a new line of code. This is what I need to do.

I need to replace.

$db_url = 'mysql://test_dev:test12@localhost/test';

With
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy