Robot Has No Heart

Xavier Shay blogs here

A robot that does not have a heart

Capturing output from rake

Rake has an annoying habit of putting it’s own diagnostic line on the first line of output. You can strip that out with tail.

1
rake my_report:xml | tail -n+2 > output.xml
  1. filterfish says:

    Another way to do it would be rake my_report:xml | sed -n '2,$p' > output.xml.

Post a comment


(lesstile enabled - surround code blocks with ---)

A pretty flower Another pretty flower