In my case, I'm just counting ssh sessions. You can change ":22 " to ":1521 " for your specific need. No need to filter, extract and sort if all you want is a count.
I've got a diff command running in a shell script that writes the ouput to a new file. In the new file there is a ">" at the beginning of each line. The output file is going to be used by another program and that character makes the file useless.
What I'm getting in the new file:
> 2007-09-27... (5 Replies)
Hi every1
Well i have a list of numbers e.g
12304
13450
01234
00123
14567
what i want is a command to check if the number is starting from 0 and then delete the 0 without doing anything else!!!!
any help wud b appreciated!!!!!!!!:( (4 Replies)
Hi
how to replace un wanted new line characters.
my file contains data like.
ramu,sony,"raju \n ravi \n ramya" \n
ravi,sarah,"sowmya \n sorry s\ sangam" \n
i want replace new line characters in between double coats with single space.
for example
$ cat input_file
ramu,sony,"raju... (3 Replies)
Hi All,
I wanted to delete all the unwanted characters in the string. ie, to delete all the characters which are not alpha numeric values.
var1="a./bc"
var2='abc/\."123'
like to get the output as
print var1
abc
print var2
abc123
Could you guys help me out pls.
Your help is... (3 Replies)
i have a file like this
1111_2222#$#$dudgfdk
11111111_343434#$#$334
1111_22222#43445667
i want to remove all those charachetrs from #
how can i do this
Thank in advance
Saravanan (4 Replies)
Hi all,
i am just a beginner in shell. Need some code for my problem.
SCENARIO
I have 2 directories. Let A,B.
Everyday files from directory A are compressed and moved to B.(already got the script).
In directory A
abc.doc
def.exe
ghi.c
jkl.pl
In directory B
abc.tar.gz... (1 Reply)
Hi,
I have a file that has data in the following manner,
tt_0.00001.dat 123.000
tt_0.00002.dat 124.000
tt_0.00002.dat 125.000
This is consistent for all the entries in the file. I want to delete the 'tt_' and '.dat' from each line. Could anyone please guide me how to do this using awk or... (2 Replies)
so i have strings such as this:
'postfix/local#2,5#|CRON.*12062.*root.*CMD#2,5#|roice.*NQN1#1,2#|toysprc#1,4#'
i need to get rid of the "#" and the numbers between them for each of the strings above. so the desired output should be:
... (1 Reply)
I wrote myself a small little shell script to clean up a file I have issues with. In particular, I am stripping down a fully qualified host/domain name to just the hostname itself. The script works, but from a performance standpoint, it's not very fast and I will be working with large data sets.
... (4 Replies)
My sed is not working on deleting the entire special characters and leaving what is necessary.grep connections_per a|sed -e 's/\<\!\-\-//g'
INPUT:
<!-- <connections_per_instance>1</connections_per_instance> -->
<method>HALF</method>
<!--... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
LEARN ABOUT DEBIAN
globus_gass_transfer_listenerattr
Listener attributes(3) globus gass transfer Listener attributes(3)NAME
Listener attributes -
Functions
int globus_gass_transfer_listenerattr_init (globus_gass_transfer_listenerattr_t *attr, char *url_scheme)
Listener Backlog
int globus_gass_transfer_listenerattr_set_backlog (globus_gass_transfer_listenerattr_t *attr, int backlog)
int globus_gass_transfer_listenerattr_get_backlog (globus_gass_transfer_listenerattr_t *attr, int *backlog)
Listener Port
int globus_gass_transfer_listenerattr_set_port (globus_gass_transfer_listenerattr_t *attr, unsigned short port)
int globus_gass_transfer_listenerattr_get_port (globus_gass_transfer_listenerattr_t *attr, unsigned short *port)
Function Documentation
int globus_gass_transfer_listenerattr_init (globus_gass_transfer_listenerattr_t *attr, char *url_scheme)
Initialize a listener attribute. This function initializes the attr to contain a new protocol-specific listener attribute.
Parameters:
attr The attribute set to be initialized.
url_scheme The scheme which which the attribute will be used for.
Return values:
GLOBUS_SUCCESS The attribute was successfully initialized.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER Either attr or url_scheme was GLOBUS_NULL.
GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol module currently registered with GASS Transfer Library handles URLs with the
specified url_scheme.
int globus_gass_transfer_listenerattr_set_backlog (globus_gass_transfer_listenerattr_t *attr, intbacklog)
Set/Get the backlog attribute for a GASS transfer attribute set. This attribute allows the user to control then number of pending
connections which may exist for this listener.
Parameters:
attr The attribute set to query or modify.
backlog The number of outstanding connections to allow.
Return values:
GLOBUS_SUCCESS The attribute was successfully updated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL.
int globus_gass_transfer_listenerattr_set_port (globus_gass_transfer_listenerattr_t *attr, unsigned shortport)
Set/Get the port attribute for a GASS transfer attribute set. This attribute allows the user to set the port to be used by a GASS Transfer
listener.
Parameters:
attr The attribute set to query or modify.
port The TCP or UDP port number to use.
Return values:
GLOBUS_SUCCESS The attribute was successfully updated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL.
int globus_gass_transfer_listenerattr_get_backlog (globus_gass_transfer_listenerattr_t *attr, int *backlog)
Set/Get the backlog attribute for a GASS transfer attribute set. This attribute allows the user to control then number of pending
connections which may exist for this listener.
Parameters:
attr The attribute set to query or modify.
backlog The number of outstanding connections to allow.
Return values:
GLOBUS_SUCCESS The attribute was successfully updated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL.
int globus_gass_transfer_listenerattr_get_port (globus_gass_transfer_listenerattr_t *attr, unsigned short *port)
Set/Get the port attribute for a GASS transfer attribute set. This attribute allows the user to set the port to be used by a GASS Transfer
listener.
Parameters:
attr The attribute set to query or modify.
port The TCP or UDP port number to use.
Return values:
GLOBUS_SUCCESS The attribute was successfully updated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL.
Author
Generated automatically by Doxygen for globus gass transfer from the source code.
Version 7.2 Mon Apr 30 2012 Listener attributes(3)