Hello
I would like to execute something like cat / path / to / file1 / path / to / file2> / path / to / file3 from Groovy program. I tried "cat / path / to / file1 / path / to / file2> / path / to / file3 .execute () but that did not work.
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.
Do you have any suggestions?
Nomr source
share