![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pattern matching extracting urls from rss, shell scripts | BremboloIV | Shell Programming and Scripting | 3 | 04-30-2009 02:54 PM |
| problem using sed for pattern matching | lassimanji | Shell Programming and Scripting | 5 | 04-22-2009 04:42 PM |
| pattern matching problem | namishtiwari | Shell Programming and Scripting | 2 | 05-23-2008 07:33 AM |
| pattern matching problem | rein | Shell Programming and Scripting | 8 | 10-26-2007 11:44 PM |
| vi part-pattern matching and deletion | vino | UNIX for Dummies Questions & Answers | 5 | 04-04-2005 01:53 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem extracting just a part of a matching pattern
Hello everyone, this is my first post so please give me a hand.
I apologize for my English, I'll try to be clear with my request. I need to write a script (Bash) which finds all the variables defined in the file .h of the folder and then writes the name of the files .c where these variables are used. I'd like to have a result like this: MAXCAR defined in xxx.h used in yyy.c The structure of the .h files is something like this: #ifndef #define XXX_H . . #define MAXCAR 4 . . #endif Of course the .c that uses the variable is something like this #include "xxx.h" . . . int z=MAXCAR*4; I hope I am clear with my request. I'll thank everyone who can help! |
| Bookmarks |
| Tags |
| bash, grep, pattern, regex, sed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|