首页 > 其他分享 >查找a文件中不包含b文件的内容

查找a文件中不包含b文件的内容

时间:2023-02-08 14:55:11浏览次数:34  
标签:文件 包含 clearing cat manifest S2L2 查找 txt remaining

!/bin/bash

cp remaining_for_clearing.manifest_bak remaining_for_clearing.manifest

cat s2l2-standalone.manifest |awk -F "|" '{print $1 "|" $2}' > S2L2.txt
cat s2l2-standalone.manifest |awk -F "|" '{print $3 "|" $4}' >> S2L2.txt
S2L2=cat S2L2.txt
for i in $S2L2
do
cat remaining_for_clearing.manifest| grep "$i" >> b.txt

done

grep -v -f b.txt remaining_for_clearing.manifest > a.txt
rm -f b.txt S2L2.txt

标签:文件,包含,clearing,cat,manifest,S2L2,查找,txt,remaining
From: https://www.cnblogs.com/cloudLi/p/17101751.html

相关文章