0

I am trying to remove all (including new lines) content with sed that comes after the following text in a file (/etc/sudoers):

#includedir /etc/sudoers.d
Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
Jason
  • 1

1 Answers1

4
sed -e '\|\#includedir /etc/sudoers\.d|q' /etc/sudoers
  • Thank you so much! I should have asked a lot sooner. Been beating my head against the wall on this one. – Jason Apr 12 '17 at 22:58