Filter lines with the other set of lines in Bash
<p>I have lines on my standard input</p>

<pre><code>$printf "C\nB\nA\n"
C
B
A
</code></pre>

<p>and I want to filter out lines (or substrings or regexps - whatever is easier) that appear on some other standard input:</p>

<pre><code>$printf "B\nA\n"
B
A
</code></pre>

<p>I expect just <code>C</code> when entries get filtered.</p>

<p>I've tried with </p>

<pre><code>$printf "C\nB\nA\n" | grep -v `printf "B\nA\n"`
</code></pre>

<p>But then I'm getting</p>

<pre><code>grep: A: No such file or directory
</code></pre>

<p>How can I perform filtering of standard input by lines returned by other command?</p>