Hi,
I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ).
Eg:
0000001
0000220
0001235
0000022
0000023
...........
.........
........
Like this i am having around 1500000 records. After adding... (23 Replies)
Hi ....
iam having a file with 20,000 rows and 56 colums.
Iam trying to sort a file ....for that iam using 'sort' command.
If iam having 3 and 5 key colums etc ... as numerical this 'sort' command will work? what ihave to do ?
sample example :
E100|0|19940102|1|11111|E003... (3 Replies)
Hi Guys,
I am very new to Unix.Can anyone tell me how to sort a file based on fields.
For example, I am having a file whose contents are mentioned below:
2233|charles harris |g.m. |sales |12/12/52| 90000 9876|bill johnson |director... (3 Replies)
Hi,
I have a file which has data as
path/1.xml path/2.xml,...(each in separate lines)
I want to sort this file in order. It is not working when I give
"sort filename"
The number of "/" in path can vary.
Thanks,
Floyd (1 Reply)
I've been on holiday, and the brain's clearly not back in gear yet...
On Solaris, I have a simple list of package names...
DGBUpPost1.43_R1
DGSApp1.44_S1
DGSApp1.47_V1
DGSApp1.48_W0
DGPEuroC1.10_K0
DGPEuroC1.11_L0
DGPEuroC1.9_J0
DGSRet1.10_K0
I just want to properly sort them into... (2 Replies)
Hi All,
My folder contains the files as:
$ ls -lrt
total 50
lms_prap_rf_20100422_99.xml
lms_prap_rf_20100422_9.xml
lms_prap_rf_20100422_100.xml
lms_prap_rf_20100422_10.xml
lms_prap_rf_20100426_1.xml
I need to get the sorting of the above file based on numbers. I need first file in... (5 Replies)
hi everyone, I am kind of new to this forum. I need help in sorting this data out accordingly, I am actually doing a traceroute application and wants my AS path displayed in front of my address like this;
192.168.1.1 AS28513 AS65534 AS5089 AS5089 .... till the last AS number and if possible... (1 Reply)
I have files with the name
myfile_YYMMDD.txt
I need to sort them by their date stamp. I know this will work.
ls -lrt * | awk '{print $9}' | cut -d "_" -f3 | sort
However, it just returns YYMMDD.txt
I can then append the myfile_ to it. However, that myfile_ may change. How do... (1 Reply)
Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies
LEARN ABOUT MOJAVE
disconnectx
DISCONNECTX(2) BSD System Calls Manual DISCONNECTX(2)NAME
disconnectx -- disconnects a connection on a socket
SYNOPSIS
#include <sys/socket.h>
int
disconnectx(int socket, sae_associd_t associd, sae_connid_t connid);
DESCRIPTION
The parameter socket is a socket. The communication domain of the socket determines the availability and behavior of disconnectx(). For
connection-oriented socket, disconnectx() is analogous to shutdown(2) with SHUT_RDWR issued on the socket. For connectionless socket, it dis-
associates any existing association to the peer socket.
The parameter associd specifies the association identifier. It should be set to SAE_ASSOCID_ANY.
The parameter connid should be set to SAE_CONNID_ANY.
NOTES
disconnectx() is currently supported only on AF_INET and AF_INET6 sockets of type SOCK_DGRAM and SOCK_STREAM.
RETURN VALUES
The disconnectx() function returns the value 0 if successful; otherwise the value of -1 is returned and the global integer variable errno is
set to indicate the error.
ERRORS
The disconnectx() system call succeeds unless:
[EALREADY] Operation already in progress.
[EBADF] Socket is not a valid descriptor.
[EINVAL] The associd or connid argument is invalid or the underlying protocol is no longer attached to socket.
[ENOTCONN] The socket is not connected.
[ENOTSOCK] Socket is a file, not a socket.
SEE ALSO connect(2), connectx(2), socket(2), compat(5)HISTORY
The disconnectx() function call appeared in Darwin 15.0.0
Darwin April 10, 2015 Darwin