title: Execute Unix cat command in Groovy?
body: <p>Hallo</p>
  
  <p>I would like to execute something like cat /path/to/file1 /path/to/file2 > /path/to/file3 from a Groovy program.
  I tried "cat /path/to/file1 /path/to/file2 > /path/to/file3".execute() but this didn't work.</p>
  
  <p>After some searching I read about sh -c. So I tried
  "sh -c cat /path/to/file1 /path/to/file2 > /path/to/file3".execute(), but that didn't work either.</p>
  
  <p>Do you have any suggestions?</p>