<origin>
, <lines-to-be-removed>
# 정렬 된 파일일 경우 comm -23 <origin> <lines-to-be-removed> join -v <origin> <lines-to-be-removed> # 정렬 무관 grep -Fvxf <lines-to-be-removed> <origin> awk 'NR==FNR{a[$0];next} !($0 in a)' <lines-to-be-removed> <origin> comm -23 <(sort <origin>) <(sort <lines-to-be-removed>) join -v 1 <(sort <origin>) <(sort <lines-to-be-removed>) diff <origin> <lines-to-be-removed> \ --new-line-format="" --old-line-format="%L" --unchanged-line-format=""