Article 6F89M Why is my sed now not working, it did a couple of months ago

Why is my sed now not working, it did a couple of months ago

by
Basher52
from LinuxQuestions.org on (#6F89M)
Hi :)

I use sed to patch my pacman.conf file to add the multilib but for the last about 2 or 3 months it won't work.
The only thing I can think of is that the ISO that came those months had something changed.

Is use this:
Code:sed -i 'N; s/^#\[multilib\]\n#Include/\[multilib\]\nInclude/' /etc/pacman.confIn vim I checked that the line ends right after the ']' on the [multilib] line with 'set list'

What is going on here, have they changed the way sed works 'cos what ever I do I can't get it to work.

//B52
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments