01-29-2009
I tried at first, but it is not working.
Even this is not working:
tr/\n\r//d,s/"/""/g,1
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a log file, I am having problem with "if else" loop in my perl script which does, find a string in that file ,If that string is found append to success.txt else append it to failed.txt.
problem is: else part of loop it is not working
I am adding problem part of the script.
... (4 Replies)
Discussion started by: amitrajvarma
4 Replies
2. Shell Programming and Scripting
hi
one perl issue i have xml file with 2 values and one condition b.w them
<rule>
<val1>12</val1>
<cond>and</cond>
<val2>13</val2>
</rule>
i read these values in hash in perl code
$one{val1} = 12
$one{cond} = and
$one{val2} = 13
now i want to form... (3 Replies)
Discussion started by: zedex
3 Replies
3. Shell Programming and Scripting
Please help me with my script please. I am trying to do the following:
1. Read files for the current directory
2. Open and read from nbe files files only
3. Read only the lines with the results pattern
4. Split the line and print 3rd field
Please indicate what line I need to modify. ... (8 Replies)
Discussion started by: jroberson
8 Replies
4. Shell Programming and Scripting
Hello. I've been writing some code in Perl to read in strings from html files and have been having issues. In the html file, each "paragraph" is a certain file on the website. I need to find every one of the files that is a certain type, in this case, having green color....therefore... (7 Replies)
Discussion started by: akreibich07
7 Replies
5. Shell Programming and Scripting
Hi Team,
the Following program execute with out error but the out is not save with create2.txt. kindly help me!!!
print "Enter your Number \n";
my $name = <STDIN>;
if ($name =="*91111*")
{
@dirlist1 = `wc -l $name > create2.txt`;
}
else {print "do not match";} (3 Replies)
Discussion started by: adaleru
3 Replies
6. Shell Programming and Scripting
Hi,
Please could someone advise on a perl command :
export ENVPROP="$HOME/cfg/environment.properties.template"
export LM_LICENSE=`awk -F= '!/^#/ && /LM_LICENSE/{print $2}' environment.properties`
echo $LM_LICENSE
$DATA_FILE/licenses/sample.demo.lic
perl -i -npe... (1 Reply)
Discussion started by: venhart
1 Replies
7. Shell Programming and Scripting
Hi,
I have a menu script written in PERL which calls some shell scripts and displays the return.
I'm having a problem with OPEN. A section of the code is below:
`./scriptlist.ksh 1`;
open OUTPUT, "</home/$SCRIPTUSER/output";
{
local $/ = undef;
$_ =... (2 Replies)
Discussion started by: chris01010
2 Replies
8. Shell Programming and Scripting
Input : day :15 and count -100
printf ("%6.6ld %10.10s %s\n",day,count)
any idea what would be the format it will be. (3 Replies)
Discussion started by: ramkumar15
3 Replies
9. Shell Programming and Scripting
I am getting a out of memory issue while executing the perl program.
Per version : /opt/acc_perl/lib/site_perl/5.14.2
Read in 54973 total records
Read in 54973 table records from table.
Out of memory!
so the job get failed due to out of memory. need to get rid of the out of memory... (3 Replies)
Discussion started by: ramkumar15
3 Replies
10. Programming
I have a perl that is sending emails in a bad format:
"begin 644 Included.doc
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BH*4U5#0T534T953"!-1$XG<R!F;W(@07)C:&EV92!022`M
M($-A;F-E;`HJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ... (1 Reply)
Discussion started by: mrn6430
1 Replies
LEARN ABOUT HPUX
elf_version
elf_version(3E) elf_version(3E)
NAME
elf_version() - coordinate ELF library and application versions
SYNOPSIS
Command: [flag]... file... [library]...
DESCRIPTION
As elf(3E) explains, the program, the library, and an object file have independent notions of the "latest" ELF version. lets a program
determine the ELF library's It further lets the program specify what memory types it uses by giving its own ver, to the library. Every
program that uses the ELF library must coordinate versions as described below.
The header file supplies the version to the program with the macro If the library's internal version (the highest version known to the
library) is lower than that known by the program itself, the library may lack semantic knowledge assumed by the program. Accordingly, will
not accept a working version unknown to the library.
Passing a ver equal to causes to return the library's internal version, without altering the working version. If ver is a version known to
the library, returns the previous (or initial) working version number. Otherwise, the working version remains unchanged and returns
EXAMPLES
The following excerpt from an application program protects itself from using an older library.
if (elf_version(EV_CURRENT) == EV_NONE)
{
/* library out of date */
/* recover from error */
}
WARNINGS
The working version should be the same for all operations on a particular ELF descriptor. Changing the version between operations on a
descriptor will probably not give the expected results.
SEE ALSO
elf(3E), elf_begin(3E), elf_xlate(3E).
elf_version(3E)