I wrote the code to query a txt file, and tried remove matched line like
but it not work as well, can someone help?
src = File.open("./src.txt").readlines
src.collect do |e|
["#/etc/passwd \r\n", “#/etc/shadow \r\n”, “/etc/group \r\n”]
["#/etc/shadow \r\n", “/etc/group \r\n”]