Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个文件 a1.txt 和 a2.txt
我想连接两个文件并从中获取输出grep -Fvf和cat结果文件(a3.txt)
grep -Fvf
cat
a3.txt
grep -Fvf `cat a1.txt>a2.txt` a3.txt
用途cat和管道:
cat a1.txt a2.txt | grep -Fvf a3.txt