On 08.12.2018 00:07, bruce wrote:
Hey. Used sed in the past to delete lines from files where the pattern is within a line. However I'm not sure I've ever had to delete a line where the line in the file matches the inputLine. Would I simply use the inputPattern plus a "\n'"?? any pointers are good..
Try extended regex with -r option, for example, match and remove all bash ending lines in /etc/passwd:
sed -r '/.+bash$/d' /etc/passwd _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx