10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Assume I have a file \usr\home\\somedir\myfile123.txt
and I want to replace all occurencies of the two (concatenated) hex values x'AD' x'A0' bytwo other (concatenated) hex values x'20' x'6E'
How can I achieve this with the gnu sed tool?
Additional question: Is there a way to let sed show... (1 Reply)
Discussion started by: pstein
1 Replies
2. Programming
Hi,
Is there really a difference between these two, std::hex and ios::hex??
I stumbled upon reading a line, "std::ios::hex is a bitmask (8 on gcc) and works with setf(). std::hex is the operator". Is this true?
Thanks (0 Replies)
Discussion started by: royalibrahim
0 Replies
3. UNIX for Advanced & Expert Users
Hi, I'm Samir and I'm new here, actually I'm facing a problem, I'm trying to configure a Linux RIS (Remote Installation Server) to drive windows installation from a Linux RHEL5 I got a guide to do that and followed precisely, I am getting this error message in the client side Setup cannot... (2 Replies)
Discussion started by: samir82show
2 Replies
4. Programming
Hello guys,
i want to convert a text file to hex and have written this code :
int main(int argc, char **argv)
{
ifstream file;
string fileName = "CODEZ";
file.open(fileName.c_str()); // oeffen im Text-Modus
if(file)
{... (5 Replies)
Discussion started by: Kingbruce
5 Replies
5. Programming
Hi All,
My main intension of is to convert the Hexstring stored in a char* into hex and then prefixing it with "0x" and suffix it with ','
This has to be done for all the hexstring char* is NULL.
Store the result prefixed with "0x" and suffixed with ',' in another char* and pass it to... (1 Reply)
Discussion started by: rvan
1 Replies
6. Shell Programming and Scripting
hi all,
echo "ibase=16;obase=10;11" | bc
shouldn't i get 17? i am getting 11
i am trying to convert 11 (hex) to decimal
stuck!
JAK (4 Replies)
Discussion started by: jakSun8
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am new to UNIX. I have a text file where each line ends on the hexadecimal character "0A". In the file there are some records that contain the Hex characters "0D0A" which I need to replace by Hex "20".
Is there a simple way to do this?
Regards,
Swanie (3 Replies)
Discussion started by: Swanie
3 Replies
8. Shell Programming and Scripting
Hi guys , i would want to count the concurrences of the 0A hex char in a text file , then if no matches i need to add a 0A at the end of the line.
Any ideas?
thx.Regards (1 Reply)
Discussion started by: Klashxx
1 Replies
9. UNIX for Dummies Questions & Answers
Dear all,
Below is my script,
totalCount=57006427
totalSummCount=1207590
let percentageSumTmp1=${totalCount}-${totalSummCount}
let percentageSumTmp2=${percentageSumTmp1}*100
The expected result for percentageSumTmp2 should be (5579883700),
but when I execute the script in unix env i... (3 Replies)
Discussion started by: epall
3 Replies
10. UNIX for Dummies Questions & Answers
How will I display on screen a UNIX ascii file with its HEX equivalent. I want to check whether 0D 0A is coming at the end of the file which I am generating from UNIX. (1 Reply)
Discussion started by: augustinep
1 Replies
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)