How do I extract parameter value after name="value" accurately?
How do I extract initialHeapSize and maximumHeapSize values accurately?
I want the code to handle potential variations to input.
Done right this is very useful to extract parameter values from config files or
ps -ef etc output.
I have a working version that using awk and cut,, but it can't handle any of the potential variations to value format mentioned above.
In the first post in this thread, you showed three lines from an XML file containing a single <jvmEntries> tag with its options. But, the code you showed us in the third post in this thread only works if that entire tag is contained on a single line (not on three lines). Is that tag on three lines or on one line?
Will the strings initialHeapSize and maximumHeapSize immediately followed by zero or more spaces immediately followed by an equal sign ever appear in your XML file outside of the <jvmEntries> tag?
You are performing a case-insensitive search for the tag jvmEntries, do we also need to search for initialHeapSize and maximumHeapSize without regard to case, or are those strings always presented exactly as shown?
my input is in a XML and <jvmEntries> is in a single line. initialHeapSize and maximumHeapSize appear only once in the XML file inside <jvmEntries> tag.
case insensitive search is to make it more robust. At present input has name="value" format without spaces. But as I explained input can change and still be valid,, how can script be more smarter?
if you are aware of any java run-time arguments used to start application processes, they have min, max heap size parameters visible in ps -auxww output. ability to get parameter values with some tolerance would help a great deal.
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Hi All,
I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file.
comm -3 < sort file_old < sort file_new > new_file
I am getting the below error:
-ksh: sort: cannot open
But if I do... (7 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
I wish to change the parameter (which I do not understand exactly what it is and I wish to) and be able to use shc with very long bash scripts (2 Replies)
Hi, im asking for help with the next script:
echo ^;
then
if
then
printf "\033
query1.sh:
export TERM=vt100
export ORACLE_TERM=at386
export ORACLE_HOME=/home_oracle8i/app/oracle/product/8.1.7
export ORACLE_BASE=/home_oracle8i/app/oracle
export... (8 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Hi,
We have a Digital Unix Server with OSF.
There's a Kernel Parameter "dflssiz" on this server.
I just want to know, what it means.
Thanks (2 Replies)