From: Oleksandr Gavenko <[email protected]>

> I get sources with lines like:
> 
>   #include<stdio.h>
>   #include"locals.h"

[snip]

> Currently I run 'sed'...

[a bit off-topic, but ...]

If your sed solution requires a temporary file,
try using this perl command line,

  perl -p -i -e 's/^#include</#include </' files...

which does not require a temporary file; perl does
the search & replace all in one command.

I call this the "perl pie" solution.


_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to