Replace complete line with sed

I'm looking to replace this content:

#hosts: ["localhost"]

For this one:

hosts: [""]

The blank space at line's first is giving me issues.


Read more here:

Content Attribution

This content was originally published by Javier S at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: