Forrest logo
back to context overview

comm

List of commands for comm:

  • comm:tldr:8c6ed comm: Print lines only found in second file, when the files aren't sorted.
    $ comm -13 <(sort ${file1}) <(sort ${file2})
    try on your machine
    explain this command
  • comm:tldr:900ee comm: Produce three tab-separated columns: lines only in first file, lines only in second file and common lines.
    $ comm ${file1} ${file2}
    try on your machine
    explain this command
  • comm:tldr:905d2 comm: Get lines only found in first file, saving the result to a third file.
    $ comm -23 ${file1} ${file2} > ${file1_only}
    try on your machine
    explain this command
  • comm:tldr:f33d6 comm: Print only lines common to both files.
    $ comm -12 ${file1} ${file2}
    try on your machine
    explain this command
back to context overview