Search Results

Search: Posts Made By: omkar.jadhav
29,601
Posted By Corona688
We are not "on call". If someone doesn't answer...
We are not "on call". If someone doesn't answer your question immediately, and you have no further information to provide, wait! I didn't get here just because you bumped it.

"spawn id exp4 not...
6,639
Posted By durden_tyler
Yes, you're looping through all the rows in the...
Yes, you're looping through all the rows in the Perl program you wrote. If you do not want the header, don't loop through it.
6,639
Posted By Corona688
Try for my $row ( ($row_min+1) .. $row_max ) { to...
Try for my $row ( ($row_min+1) .. $row_max ) { to loop through one fewer row.
1,205
Posted By Makarand Dodmis
tryprtconf | awk '/^System Model/ {print "System...
tryprtconf | awk '/^System Model/ {print "System Model:" $2}' FS=','
1,865
Posted By RavinderSingh13
Omkar, If you are not saving the output for...
Omkar,

If you are not saving the output for vmstat into a file then following will help.


vmstat | awk -vs1="lcpu= " -F"=" 'NR==2 {a=$2} gsub(/[a-z]/,X,a) {print s1 a}'




Thanks,...
1,865
Posted By RavinderSingh13
Hello Omkar, kindly let me know if...
Hello Omkar,

kindly let me know if following helps you.


awk -vs1="lcpu= " -F"=" 'NR==1 {a=$2} gsub(/[a-z]/,X,a) {print s1 a}' vmstat_output



Thanks,
R. Singh
1,865
Posted By RavinderSingh13
Hello, Followoing may help. awk...
Hello,

Followoing may help.


awk '/lcpu/ {print $(NF-2)}' vmstat_output


Output will be as follows. Where vmstat_output is input file.


lcpu=4



Thanks,
R. Singh
1,651
Posted By Akshay Hegde
Try : $ cat file System Hardware ...
Try :

$ cat file
System Hardware
Model: ia64 hp Integrity Virtual Partition
Main Memory: 6137 MB
Processors: 2
Intel(R) Itanium(R) Processor...
1,651
Posted By RavinderSingh13
Hello Omkar, Following may help also. ...
Hello Omkar,

Following may help also.


awk '{for(i=1;i<=NF;i++) {if($i=="logical") print $(i-1)}}' file_name



Output will be as follows.


16
2



Thanks,
R. Singh
Forum: AIX 01-21-2014
19,430
Posted By -=XrAy=-
Hi, here an example: # lslpp -Lc | head -3...
Hi,

here an example:
# lslpp -Lc | head -3
#Package Name:Fileset:Level:State:PTF Id:Fix State:Type:Description:Destination Dir.:Uninstaller:Message Catalog:Message Set:Message...
Forum: Red Hat 11-15-2013
1,605
Posted By rbatte1
You may nee to extend your searching. Try :-rpm...
You may nee to extend your searching. Try :-rpm -qa --info | grep -e '^Name ' -e 'Version' -e 'Release' -e 'Vendor'Note the trailing space for Name too.

It should give you:-Name : libidn ...
Forum: Solaris 11-05-2013
2,147
Posted By DukeNuke2
Have you tried the documentation before asking a...
Have you tried the documentation before asking a question?

http://www.oracle.com/technetwork/documentation/index.html#sys_sw
Forum: Solaris 11-07-2013
1,833
Posted By Yoda
An nawk solution: pkginfo -l | nawk ' ...
An nawk solution:
pkginfo -l | nawk '
BEGIN {
printf "%-80s %-40s %-30s\n", "NAME", "VERSION", "VENDOR"
}
/NAME:/ {
nm = $0
...
Forum: Solaris 11-05-2013
1,833
Posted By bartus11
Try:sed 's/^ *//' /tmp/test1.txt | paste -d" " -...
Try:sed 's/^ *//' /tmp/test1.txt | paste -d" " - - -
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 02:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy