Search Results

Search: Posts Made By: rveri
2,790
Posted By rveri
Hi All, Thanks for the responses, Don , Rudi C,...
Hi All, Thanks for the responses, Don , Rudi C, all thanks,

Rudi C, yes that is the only Snippet .., and I went ahead and got this.. ,

count.awk
{if(substr($1,7,1)=="p"){p++}}END{print...
2,790
Posted By rveri
awk or other way to find out number of occurrence of 7th character
Hi all,
I am looking for to filter out based on 7th character and list the number of occurrence based on the 7th character if p , d , o or m

1. if 7th character is p , Output should be: p_hosts...
1,924
Posted By rveri
noted..good points thanks.. I thought it would...
noted..good points thanks.. I thought it would not work in ksh , I had an impression that "expr" and "let" are the only way to do the math operation in ksh. Thanks for the improved codes .
...
1,924
Posted By rveri
Thanks MadeInGermany, It worked for a small...
Thanks MadeInGermany,
It worked for a small line of code, when I executed against the 44000 lines , it did not do what it was intended to do, both the script awk and shell version, only had 1 line...
1,924
Posted By rveri
Thank you both, I checked the code from ...
Thank you both,
I checked the code from Scrutinizer , worked great ...
MadeInGermany also worked great ...

Both the code hard to understand .. but looks like same flow they are using , with...
1,924
Posted By rveri
Get output of multiple pattern match from first field to a file
Hi All,
Greetings!

I have a file of 40000+ lines with different entries, I need matching entries filterd out to their files based on first filed pattern for the matching :

For example:
All...
Forum: HP-UX 11-10-2014
9,050
Posted By rveri
vmstat 2 10 ##look if you hitting swapping,...
vmstat 2 10 ##look if you hitting swapping, pi/po values should not be non-zero.
model ; swlist -l bundle | grep -e QPK -e GOLD


Have you patched the server to it's applicable patches, how...
Forum: Solaris 09-08-2014
5,694
Posted By rveri
can you post df -k , to see how the output looks...
can you post df -k , to see how the output looks like.
841
Posted By rveri
So how do I get the above output, do I have to...
So how do I get the above output, do I have to store in an array first. Thank you ..
841
Posted By rveri
awk - why this is not working? trying next word!
Hi Experts,
Can you please advise , why I am not able to make it work, or why this is not working: I spent quite a lot of time on this figuring out , but not working,




file :
This is a...
1,631
Posted By rveri
F can only be true if F is 0 or 1 or has numeric...
F can only be true if F is 0 or 1 or has numeric value , is it correct. Thanks..
1,631
Posted By rveri
Help in Understanding awk if ( F ) syntax -
Hi Experts,

I was looking at the below link, for finding words next to it, And unable to understand this syntax:
Can any one please explain , what is meaning of this code:



if ( F )
s = s...
1,315
Posted By rveri
Why getting different output in ps command!?
Hi Experts,
Can any one please explain why I am getting two different output in the below two commands : I have 109 SA_AP process but the first command can't see them ..strange! ,
...
3,551
Posted By rveri
Thanks, The system is hp-ux 11.23 , I think the...
Thanks, The system is hp-ux 11.23 , I think the grep solution is for gnu grep (for linux system).
However it is good to know.

The awk gsub worked awesome and like it.

awk...
3,551
Posted By rveri
The grep solution what I get is : grep:...
The grep solution what I get is :
grep: illegal option -- o



$ grep -o "\." infile|wc -l
grep: illegal option -- o
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvwx] -e pattern_list...
[-f...
3,551
Posted By rveri
I am still trying and thinking...about it. how to...
I am still trying and thinking...about it. how to do it. awk no clue how to get to a filed which has no space.. etc. So still working on it. Thanks any way for the comment.

---------- Post updated...
3,551
Posted By rveri
4,164
Posted By rveri
Do you have any sample pattern you can post, to...
Do you have any sample pattern you can post, to look at the data.
For example if you are trying to extract top 20 records from (Char/varchar columns) say 5th field, that are more than 4 character...
1,896
Posted By rveri
Like this simple approach : I was missing. ...
Like this simple approach : I was missing.

sed 's/\./ /7' file

Scrutinizer, thanks a lot ,
1,896
Posted By rveri
awk -sed help : forth . to convert to "space"
Hi Experts,
Good day,

I am looking for the 6th fields 4th dot (.) to convert into a space in the output.

file:

tcp 0 0 10.80.110.100 2900 1 10.40.104.6.42769 ...
1,843
Posted By rveri
RudiC thanks, worked the first one. CarolM &...
RudiC thanks, worked the first one.
CarolM & Scrutinizer, thanks worked too... ,
1,843
Posted By rveri
Hi blackrageous, It did not work , ...
Hi blackrageous,

It did not work ,

PID=42
$ ps -T ${PID}
ps: illegal option -- T
usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]
$

This...
1,843
Posted By rveri
awk - grep particular word from output
Hi Experts,

- Getting error while using it through a variable to get the PID,

PID=42
# UNIX95=1 ps -e -o pcpu,pid,ppid,stime,etime,args | awk '{if ($2~"^42$") print $0}'
0.00 42 0 ...
9,135
Posted By rveri
in2nix4life , This is awesome, runs pretty well...
in2nix4life , This is awesome, runs pretty well in bash, is there a ksh version of it. Thanks a lot..
Forum: HP-UX 08-29-2013
3,128
Posted By rveri
Mohtashims, >> What i need is a script that...
Mohtashims,

>> What i need is a script that shows the free disk space for all partitions on my HPUX itanium server.

- Why not use bdf or bdfmegs to make things easier.


check this out:...
Showing results 1 to 25 of 230

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