![]() |
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 |
| Passing global variable to a function which is called by another function | sars | Shell Programming and Scripting | 4 | 06-30-2008 11:39 AM |
| How to identify which device from ssd29? | KhawHL | SUN Solaris | 10 | 05-14-2008 12:16 AM |
| identify this mobo | blowFish@ubuntu | What's on Your Mind? | 0 | 07-18-2007 01:06 AM |
| how to identify files I cannot access | wvdeijk | UNIX for Dummies Questions & Answers | 4 | 08-04-2006 05:18 AM |
| identify hardware | patrickb | Filesystems, Disks and Memory | 0 | 02-21-2006 10:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
There isn't a shell command that does that.
You need special software to parse the code. You can use splint to get information like that. Download it here: http://www.splint.org/download.html |
|
||||
|
You could write a very complex shell script to find all occurrences of2words that come just before an open parenthesis, then do a unique sort on those words. Then you have to find a way to remove all of the external functions.
However, coders do funny things with declarations that really confuse a script. Generally, you need to write a lexer (lex & yacc) to parse source code correctly. |
![]() |
| Bookmarks |
| Tags |
| linux, regex, regular expressions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|