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 |
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 |
September 29, 2008 at 8:56 AM
Another way to do it would be rake my_report:xml | sed -n '2,$p' > output.xml.