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.
file1 と file2 の 2 つのテキスト ファイルがあります。file2 のどの行が file1 にないかを特定したいと考えています。DOS バッチ ファイルを使用してこれを行うにはどうすればよいですか?
findstr /v /g:file1 file2
findstr を使用して、一致する文字列を file1 から取得する必要があることを示し、file2 を検索して、file1 の文字列と一致しない file2 の行を表示します。