Note that there are some explanatory texts on larger screens.

plurals
  1. POCompare two or more files and print only those lines from 1st file which contain words which aren't present in second file
    primarykey
    data
    text
    <p>I have the following issue that I'm trying to solve in bash/sed/awk (Useful one-line script).</p> <p>Compare two or more files and print only those lines from 1st file which contain words (patterns) which aren't present in second file in the same name, preserving the order in which they occur and ignore case sensitive. (gosh, sound so complex and stupid... I don't know how to put it in another words).</p> <p>I have two different files (file1, file2) contaning a list of information like the following:</p> <p>file1</p> <pre class="lang-none prettyprint-override"><code>Agents In The Court / No Love For The Empire Mercenary Armor Solo Han WB Obi-Wan's Journal Obi-Wan's Lightsaber No Questions Asked Do, or do Not Strike Blocked </code></pre> <p>file2</p> <pre class="lang-none prettyprint-override"><code>Agents In The Court / No Love For The Empire BB -&gt; (LiGHT SIDE -- Special Cards) Mercenary Armor BB -&gt; (LiGHT SIDE -- Device) Obi-Wan's Journal BB -&gt; (LiGHT SIDE -- Device) No Questions Asked BB -&gt; (LiGHT SIDE -- Special Cards) Do, Or Do Not BB -&gt; (LiGHT SIDE -- Defensive Shield) Strike Planning BB -&gt; (LiGHT SIDE -- Effect) Alter (Obi-Wan) WB -&gt; (LiGHT SIDE -- Used Interrupt) Solo Han BB -&gt; (LiGHT SIDE -- Human and Human-Like Characters) Combined Attack BB -&gt; (LiGHT SIDE -- Lost Interrupt) </code></pre> <p>Result should be like this:</p> <pre class="lang-none prettyprint-override"><code>Solo Han WB Obi-Wan's Lightsaber Strike Blocked </code></pre> <p>I would be grateful for any help (complete solution, tip, link to similar issue, etc).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload