Hello All,
Is there any way to find a function name in a program file using perl.
for example, there is a file called Test.C in that
.
.
from this I know only the string 'abc100', using this how can I find the function name and the other associate RA numbers within the funcion.
thanks in advance,
Parthiban.
Last edited by Scott; 06-24-2010 at 06:15 PM..
Reason: Please use code tags
It will show only the particular line which contains abc100.
I want the function name which contains 'abc100' and other other numbers which having the same pattern 'RA '.
I tried the following
it will list out all the strings with pattern "RA " in the file.
I just want to know the function name which contains the specific string, and the line numbers of starting of the function and ending of the function.
any idea?
Last edited by Scott; 06-24-2010 at 06:16 PM..
Reason: Code tags, please...
Hello
Would you tell me how to find which program that update a specific file?
I am implementing migration project.
My machines OS are AIX.
It is because lack of documentation, some program cannot working properly on new machine.
We found the root cause of this problem is that some data... (4 Replies)
Hi
I have a file
name1 xxxxx
name1 xxxxx
name1 yyyyy
name 1 zzzzz
name1 Uniprot Id 1234
name2 sssss
name2 eeeee
name2 bengamine
name2 Uniprot Id 3456
......................and so on
I have to capture Uniprot IDs only in a separate file so that output contain only
... (20 Replies)
We have a program source C and is required to indicate how many times each function is called from the C program. also print the line number where there is a call.
I've tried something like this:
#!/bin/sh
for i in $*;do
if !
then
echo $i is not a C file.
else echo $i... (0 Replies)
hi dudes, I nee you kind assistance, I have to find the matched numbers from 2 text files and output of matched numbers should be in another text file..
I do have text files like this , for example
File 1
787
665*5-p
5454
545-p
445-p
5454*-p
File 2
5455
787
445-p
4356
2445
144
... (3 Replies)
Hello,
I'm learning the perl's Find function using unix but I keep getting this error when running the script:
"Not a CODE reference at /usr/lib.perl5/5.8.8/File/Find.pm line 822" - what does this mean?
Does anyone know??? Here's my script:
use File::Find;
find (\$dir,$ENV{HOME});
... (4 Replies)
Hi
Is there a way to get the program/script name or function name usng built ins.
Like in many languages arg holds the program name
regards (2 Replies)
I have an error in my logs as it shows some function name .
1. I dnt know where is the file.cpp located only i know the machine .
2. How to find out that the function name is loacated in which path and which file into that machine.
Thanks . (1 Reply)
hello i came up with this ..The problematic part that i am facing is in underline and bold format.
exec<file
while read line
do
set $line
i=1
while
do
str=$i #problematic i want the positional parameter but here it takes integer value.
p=1
q=`expr length $str`
flag=1... (6 Replies)
Apart from writing debug and statements in constructors is there any way by which we can trace the function call stack at any depth?
The issue that we always face is that when program crashes (Web Server running on Linux) we have no idea where it crashes and we have to do the hard way of... (1 Reply)
Hi,
I want a command in unix shell script which will exit my whole program, not only from the function it's using. For e.g:
$1 == "m_who" && $4 == "Extrnl Vendor" {
print "You don have access"
exit (0);
}
If this error is showing on the screen, then nothing should not... (9 Replies)