type *.txt>>all.txt
将目录下所有 *.txt 合并,排除 1.txt 和 2.txt 请问这句怎么写呢?
*.txt
1.txt
2.txt
ls *.txt | grep -v '1.txt|2.txt' | xargs cat > all.txt
2.1m questions
2.1m answers
60 comments
57.0k users