Interesting separator technique, but seems to only work with GNU awk.
And, of course, the positions and amounts of the "helper-address" lines may vary...
I have a shell script and want to assign a value to a variable. The value is the line exctrated from a file using the line number. The line number it is not fix, and could change any time.
I have tried sed, awk, head .. See my script
# Get randome line number from the file
#selectedline = `awk... (1 Reply)
Hello,
I am having trouble extracting a specific line from a file when the line number is known. My first attempt involved grep -n 'hi' (the word 'hi will always be there) to get the line number before the line that I actually want (line 4).
Extra Notes:
-I am working in a bash script.
-The... (7 Replies)
This is the line that I am using:
sed 's/^*\({3}*$\)/\1 /' <test.txt >results.txt
and suppose that test.txt contains the following lines:
http://www.example.com/200904/AUS.txt
http://www.example.com/200903/_RUS.txt
http://www.example.com/200902/.FRA.txt
What I expected to see in results.txt... (6 Replies)
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
Dear all,
I am trying to extract a number from a line in one file (task 1), duplicate another file (task 2) and replace all instances of the strings 300, in duplicated with the extracted number (task 3). Here is what I have tried so far:
for ((k=1;k<4;k++)); do
temp=`sed -n "${k}p"... (2 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 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)
In the below perl code I am using tags within each line to extract certain information. The tags that are used are:
STB >0.8 is STRAND BIAS otherwise GOOD
FDP is the second number
GO towards the end of the line is read into an array and the value returned is outputed, in the first line that... (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT DEBIAN
authbind-helper
AUTHBIND-HELPER(8) Debian Linux manual AUTHBIND-HELPER(8)NAME
authbind-helper - helper program to bind sockets to privileged ports without root
SYNOPSIS
/usr/lib/authbind/helper addr4-hex port-hex <socket
/usr/lib/authbind/helper addr6-hex port-hex 6 <socket
DESCRIPTION
helper is the program used by libauthbind, which is in turn used by authbind to allow programs which do not or should not run as root to
bind to low-numbered ports in a controlled way. See authbind(1).
It may also be used standalone, i.e. without assistance from authbind. Its standard input should be a TCP/IP socket, and it should be
passed two or three arguments.
The arguments are the address and port number, respectively, to which the caller desires that the socket be bound, and the address family
(ommitted for IPv4; the fixed string 6 for IPv6). addr4-hex and port-hex should be hex strings, without leading 0x, of exactly the right
length (8 and 4 digits, respectively), being a pair of hex digits for each byte in the address or port number when expressed in host byte
order. For example, the port argument is the result of something like sprintf(arg, "%04X", sin.sin_port). addr6-hex should be a string of
32 hex digits, being a pair for each byte in the address, in network byte order.
EXIT STATUS
helper will exit with code 0 on success.
If possible, helper will return an appropriate errno value as its exit status. If this is not possible it may exit with status 255 or with
an exit status corresponding to ENOSYS (Function not implemented).
ACCESS CONTROL
See authbind(1) for details of the access control regime implemented by helper.
SEE ALSO authbind(1), bind(2)AUTHOR
authbind and this manpage were written by Ian Jackson. They are Copyright (C)1998,2012 by him and released under the GNU General Public
Licence; there is NO WARRANTY. See /usr/doc/authbind/copyright and /usr/doc/copyright/GPL for details.
Debian Project 30th August 1998 AUTHBIND-HELPER(8)