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
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI 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
sed -e '\|\#includedir /etc/sudoers\.d|q' /etc/sudoers