i have about 1000 file with angle brackets include directive. I'd like to change this directive with any kind of script like the example below:
#include <file.h>
to:
#include "file.h"
or
#include <dir/file.h>
to
#inlcude "dir/file.h"
Thanks in advance.
---- EDITING ----- i have tried this script:
for myfile in $(find ./include); do
sed -i '/^#include/s/<\([^>]*\)>/"\1"/' "${myfile}" > /dev/null
done
but the result is: sed: 1: "./include/DIR/FILE.h": invalid command code .