operator >> method
Appends to file. Platform independent. e.g.
$("echo 1") >> File("./temp");
Will append "1" to file "temp". Which is equivlent to
$("echo 1 >> ./temp")();
on MacOs and Linux. But the above will append "1 " to "temp" on windows.
Implementation
@override
Future<void> operator >>(io.File file) async {
await file.writeAsBytes(await stdout,
mode: io.FileMode.writeOnlyAppend, flush: true);
}