title: NiFi - how to reference a flowFile in ExecuteStreamCommand?
body: <p>I need to execute something like:
  sed '1d' simple.tsv > noHeader.tsv</p>
  
  <p>which will remove first line from my big flow file (> 1 GB).</p>
  
  <p>The thing is - I need to execute it on my flow file, so it'd be:</p>
  
  <p>sed '1d' myFlowFile > myFlowFile</p>
  
  <p>Question is: how I should configure the ExecuteStreamCommand processor so that it runs the command on my flow file and returns it back to my flow file?
  If sed is not a best option, I can consider doing this other way (e.g. tail)</p>
  
  <p><a href="https://i.stack.imgur.com/SA8f5.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/SA8f5.jpg" alt="ExecuteStreamCommand processor"></a></p>
  
  <p>Thanks, Michal</p>
  
  <p><strong>Edit 2 (Solution):</strong> </p>
  
  <p>Below is the final ExecuteStreamCommand config that does what I need (remove 1st line from the flow file).
  @Andy - thanks a lot for all the precious hints. 
  <a href="https://i.stack.imgur.com/blXMY.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/blXMY.jpg" alt="ExecuteStreamCommand - remove 1st line from the flow"></a></p>