How can I delete specific lines using awk/sed based on the contents of another file
问题 How can I delete a specific lines from a file based on line numbers that are contained in another file? I know how to delete specific lines by just providing them on the command line, but I do not know how to delete specific lines based on lines numbers that are contained in another file. The file containing the line numbers is in the following format: 15768 15775 15777 15782 15784 15789 15791 15798 15800 15807 15809 15815 15817 15824 15826 There are 2073 lines total that I need to remove. I