comm
Select or reject lines common to two files. Both files must be sorted.
=> More information.
- Produce three tab-separated columns: lines only in first file, lines only in second file and common lines:
comm {file1} {file2}
- Print only lines common to both files:
comm -12 {file1} {file2}
- Print only lines common to both files, reading one file from stdin:
cat {file1} | comm -12 - {file2}
- Get lines only found in first file, saving the result to a third file:
comm -23 {file1} {file2} > {file1_only}
- Print lines only found in second file, when the files aren't sorted:
comm -13 <(sort {file1}) <(sort {file2})
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY
Proxy Information
- Original URL
- gemini://freeshell.de/tldr/comm.gmi
- Status Code
- Success (20)
- Meta
text/gemini;lang=en-GB
- Capsule Response Time
- 103.954477 milliseconds
- Gemini-to-HTML Time
- 0.268961 milliseconds
This content has been proxied by September (3851b).