Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a .NET port of the SED stream editor

Tags:

c#

.net

sed

porting

Is there a .NET port of the SED stream editor? Ideally it would be open source, but at this stage I'm not ruling anything out.

I have googled for this already without any obvious hits, so the secondary question here is: How hard would it be to create one?

I assume the sources for SED are in C. If the answer to my primary question is No, I would appreciate pointers/strategies for porting such a project to C#.

like image 619
Dominic Cronin Avatar asked Oct 09 '22 10:10

Dominic Cronin


1 Answers

Use a mingw build including sed from msys, build a dll, then call the dll from C#.

The gnuwin32 project includes a sed port and a minised.

References

  • Building Windows DLLs with MinGW
  • How to compile C program as dll in Mingw for use with Inno Setup & callback
like image 52
Paul Sweatte Avatar answered Oct 13 '22 09:10

Paul Sweatte