I am completely new to perl.
what i want to do is to find if a specific data type is used inside the structure definitions in a C header file.
Expand|Select|Wrap|Line Numbers
- perl -ne 'print if /struct[^(].*{/ .. /}/' header.h | grep long
Expand|Select|Wrap|Line Numbers
- struct tag {
but i need to get the result even if the pattern is in multiple lines
like
Expand|Select|Wrap|Line Numbers
- struct tag
- {
I need two things infact, one is to find if a specific type is used in any of the structure definitions.
two is to replace a specific type with a new type in all structure definitions.
Thank you,
Regards
Vishnu