Search code examples
bashshellxargsack

xargs not working


I want all the lines with assert_equal and without amazon.

I tried following but it is not working.

ack assert_equal | xargs ack -v amazon

Solution

  • You don't need xargs:

    ack assert_equal | ack -v amazon