How to extract headers from a c file that contains them like this?
#include #include #include
Try:
awk '{match($0,/[<"].*[>"]/);print substr($0,RSTART+1,RLENGTH-2)}' Input_file