📌  相关文章
📜  bash 从一个文件中返回不在另一个文件中的行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:47.998000             🧑  作者: Mango

代码示例1
# Example usage:
awk 'NR==FNR { b[$0] = 1; next } !b[$0]' input_file_1 input_file_2
# This returns all lines of input_file_2 that aren't found in 
# input_file_1

# Note, remove the ! to return all lines in common between the files