Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I don't want to just remove visible characters in the line, I want to pull the line right out Commented Mar 22, 2016 at 17:35
  • 1
    sed -e '/\/home\/device\/eth1\/ipv4/d' <file Commented Mar 22, 2016 at 17:36
  • Why are you using -e? Commented Mar 22, 2016 at 17:38
  • 3
    Well, get rid of those double quotes and use single quotes instead, remove the s (you're not substituting anything) and escape the opening delimiter: sed '\|/home/device/eth1/ipv4|d' Commented Mar 22, 2016 at 17:39