I have a file like: myfile.txt
it is easy to learn awk and begin awk scripting
and awk has got many features
awk is a powerful text processing tool
Now i want to get the text between first awk and immediate awk not the third awk . How to get it ? its urgent pls help me and file is unevenly... (2 Replies)
Hi,
I have a file from which i need to extract data between two constant strings.
The data looks like this :
Line 1 SUN> read db @cmpd unit 60
Line 2 Parameter: CMPD -> "C00071"
Line 3
Line 4 SUN> generate
Line 5 tabint>ERROR: (Variable data)
The data i need to extract is... (11 Replies)
Hi,
I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it.
Here is how the text file looks:
_______________________________________________________
DEVICE STATUS INFORMATION FOR LOCATION 1:
OPER STATES: Disabled E:Enabled ... (5 Replies)
Hello All,
I need to extract lines from a file that contains ALPHANUMERIC and the length of Alphanumeric is set to 16. I have pasted the sample of the lines from the text file that I have created.
My problem is that sometimes 16 appears in other part of the line. I'm only interested to... (14 Replies)
Hi guys,
I have been trying to do this, but... no luck so maybe you can help me.
I have a line like this:
Total Handled, Received, on queue Input Mgs: 140 / 14 => 0
I need to, get the number after the / until the =, to get only 14 .
Any help is greatly appreciated.
Thanks, (4 Replies)
Hi,
I have two files: a.doc and b.txt
I wish to search the strings from file b.txt in a.doc and want to highlight them in a.doc with different colours using Perl or bash./awk/sed?
Please guide me. :)
Thanks!!!!! (10 Replies)
Hi, I have multiple files on a directory with the following content:
blahblah
blahblah
hostname server1
blahblah
blahblah
---BEGIN---
aaa
bbb
ccc
ddd
---END---
blahblah
blahblah
blahblah
I would like to filter all the files with awk or sed or something else so I can get below... (6 Replies)
I have a file conatining the below:
---
10.9.16.116:
/tmp/5835113081224811756.jar:
hash: e6df90d38fa86f0e289f73d79cd2cfd2a29954eb
/tmp/4603745991442278706.jar:
hash: e6df90d38fa86f0e289f73d79cd2cfd2a29954eb
10.9.14.126:
/tmp/conf/extra/httpd-ssl.conf:
hash:... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT HPUX
cmpt_get_peer_cid
cmpt_get_peer_cid(3) Library Functions Manual cmpt_get_peer_cid(3)NAME
cmpt_get_peer_cid(), cmpt_get_endpoint_cid() - get the compartment IDs for INET domain communications.
SYNOPSIS
Parameters
s INET domain socket or stream.
DESCRIPTION
The and functions return the compartments associated with an INET domain transport endpoint (a socket or a stream).
The function returns the compartment ID (cid) associated with the transport endpoint s. The cid of a transport endpoint is set to the
process's cid at the time of creation, and does not change even when it is transferred between processes or the creating process changes
its compartment.
The function returns the compartment ID of the peer that the transport endpoint s is communicating with. For loopback communications, the
cid is the one associated with the peer transport endpoint. For communications over a network interface, the peer cid is the one associ-
ated with the network interface where communications are being received. For TCP communications, the peer cid is persistent once a connec-
tion is established. For other protocols, the peer cid may change for each packet that is received.
The function returns an error if a connection is not established (for TCP) or no communication has been received (for all other protocols).
RETURN VALUE
and return the following values:
Successful completion.
The function returns a valid compartment ID.
Function failed.
is set to indicate the error from the underlying system call.
ERRORS
See ioctl(2) for errors indicated by
DEPENDENCIES
These functions are a part of the library.
SEE ALSO compartments(4), compartments(5).
cmpt_get_peer_cid(3)