0

I have a Procfile which looks like that:

electron: ./node_modules/.bin/electron .

I would like to remove all the lines whith _rawLocationToUILocation from the output. I've tried the following:

electron: sh -c './node_modules/.bin/electron . 2>&1 | grep -v rawLocationToUILocation'

but after that, all output is removed. I thought it could be linked to buffering so I used unbuffer but that did not change anything.

Any idea?

vmarquet
  • 2,384
  • 3
  • 25
  • 39

1 Answers1

0

Found the answer myself. It was indeed related to buffering.

Using the --line-buffered option of grep resolved the problem.

vmarquet
  • 2,384
  • 3
  • 25
  • 39