Search Results

Search: Posts Made By: ostapv
7,357
Posted By ostapv
Yes, Can I provide expected result command...
Yes,
Can I provide expected result command grep or only awk?

Thank you!
Have a nice day!
7,357
Posted By ostapv
Ok, but I don't have nawk, I run awk and follow: ...
Ok, but I don't have nawk, I run awk and follow:
[root@om910 ~]# netstat -an | awk ' $4~/:383$/ || $5~/:383$/ {print $0}'
tcp 0 0 0.0.0.0:383 0.0.0.0:* ...
7,357
Posted By ostapv
hm... but port 383 dosn't displayed ...
hm...
but port 383 dosn't displayed
[root@om910 ~]# netstat -an | grep ":383$" | grep ESTABLISHED
[root@om910 ~]#
7,357
Posted By ostapv
How set filter netstat -an | grep -P '\:'38''
Hi,

I can write sh script for Linux platform
I run:
netstat -an | grep -P '\:'38''| grep ESTABLISHED

but result:

[root@om910 install]# netstat -an | grep -P '\:'38''| grep ESTABLISHED...
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
Thanks
Thanks
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
# echo a b | awk '{print $2}' b bdf . |...
# echo a b | awk '{print $2}'
b

bdf . | while read a b;do printf '%s\n' "$a";done
Filesystem
/dev/vg00/lvol8
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
OK [root@omu /sbin]# bdf . | od -cb ...
OK

[root@omu /sbin]# bdf . | od -cb
0000000 F i l e s y s t e m
106 151 154 145 163 171 163 164 145 155 040 040 040 040 040 040
0000020 k b y...
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
# export LC_ALL=C; bdf | awk '{print $5}' ...
# export LC_ALL=C; bdf | awk '{print $5}'
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 7110656 2231424 4841544 32% /
/dev/vg00/lvol1 1014648 51616 861560 ...
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
Sorry,that: #/usr/bin/awk: PA-RISC1.1...
Sorry,that:

#/usr/bin/awk: PA-RISC1.1 shared executable dynamically linked
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
this? # sh file "$(whence awk)" bash: whence:...
this?
# sh file "$(whence awk)"
bash: whence: command not found
file: invalid multibyte character

/sbin]# file "$(whence awk)"
bash: whence: command not found
that's all!
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
# bdf | awk '{print $5}' Filesystem ...
# bdf | awk '{print $5}'
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 7110656 2231424 4841544 32% /
/dev/vg00/lvol1 1014648 51616 861560 6% /stand...
Forum: HP-UX 06-21-2010
9,735
Posted By ostapv
awk don't work in hp-ux 11.11
Hello all!
I have problem in hp-ux 11.11 in awk

I want to grep sar -d 2 1 only 3 column, but have error in awk in hp-ux 11.11

Example:
#echo 123 234 | awk '{print $2}'
123 234


The...
Showing results 1 to 12 of 12

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