10-13-2010
The tr needs a different notation than ^X? Try \octal, \25 in this case.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I create filesystems in AIX i often get confused(using smit)
When you specify size in aix, it is asked like this
SIZE of file system (in 512-byte blocks)
I never seem to grasp this, what is the equation to get say
500mb? Or is there a program anyone knows of that does this, like a... (1 Reply)
Discussion started by: csaunders
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I transferred some .txt files from windows to Unix. When i used the editor in Unix to open up the file, all the <cr> show up. How to I get rid of all of them? (4 Replies)
Discussion started by: laila63
4 Replies
3. Shell Programming and Scripting
I want to convert string into uppercase string. How can i do that ? Ex: Enter the user name:
read name
show=upper(name)
echo $show --- This output should be the uppercase output.
Thanks (3 Replies)
Discussion started by: dreams5617
3 Replies
4. SCO
I use Sco_Sv 3.2v5.0.5 with parellel conection using dump terminals and i want to convert them to desktop pc.
Anybody knows what hardware and other thing that would be involved? (3 Replies)
Discussion started by: seeyou
3 Replies
5. Shell Programming and Scripting
Hi - I have seen some similar posts but I am a bit stumped here
below is the first line of a 'od -c filename' command. I want to change the \0 to \n
0000000 l s \0 c d - \0 c d . . \0 l s
I have tried a sed construct in a script.........
sed... (2 Replies)
Discussion started by: ajcannon
2 Replies
6. Shell Programming and Scripting
Hi all,
I have never written a script so I guess you could say I am very yellow.:) However, I could use some help.... I need to write a Korn Shell Script that converts coins. Meaning if I print or echo "Please enter amount:" and the user puts in 3.87, I need to know the least amount of coins... (11 Replies)
Discussion started by: tzeman
11 Replies
7. SCO
Hi everybody
Is there any sco unix command to convert .so library to .a
(under sco unix openserver.5.0.6)
tnx (2 Replies)
Discussion started by: javad1_maroofi
2 Replies
8. Solaris
So i have been asked to write a script for a friend who has a server running solaris 11. My problem is the correct syntax i can't seem to get it work with the follow code, i have read through the date man page and found no work around
Below is the code for part of the rsync script.
The code i... (2 Replies)
Discussion started by: paperghost
2 Replies
9. Shell Programming and Scripting
I have a set of values separated by a tab
ch:12 1 3 4
ch:13 3 3 4
ch:25 1 8
ch:23 2 8 1
There is a missing value in the third column and i would like replace it with
NA such that the final output would look like
ch:12 1 3 ... (7 Replies)
Discussion started by: johnkim0806
7 Replies
10. Shell Programming and Scripting
I have Excel file with the below three columns, i need your expertise in converting this to .csv file delimiter "|"
Excel -
Serial Number Serial Name Serial Brand
111 test sample
123 test2 sample1
134 ... (9 Replies)
Discussion started by: kiran_hp
9 Replies
NS(3N) NS(3N)
NAME
ns_addr, ns_ntoa - Xerox NS(tm) address conversion routines
SYNOPSIS
#include <sys/types.h>
#include <netns/ns.h>
struct ns_addr ns_addr(cp)
char *cp;
char *ns_ntoa(ns)
struct ns_addr ns;
DESCRIPTION
The routine ns_addr interprets character strings representing XNS addresses, returning binary information suitable for use in system calls.
ns_ntoa takes XNS addresses and returns ASCII strings representing the address in a notation in common use in the Xerox Development Envi-
ronment:
<network number>.<host number>.<port number>
Trailing zero fields are suppressed, and each number is printed in hexadecimal, in a format suitable for input to ns_addr. Any fields
lacking super-decimal digits will have a trailing ``H'' appended.
Unfortunately, no universal standard exists for representing XNS addresses. An effort has been made to insure that ns_addr be compatible
with most formats in common use. It will first separate an address into 1 to 3 fields using a single delimiter chosen from period (``.''),
colon (``:'') or pound-sign (``#''). Each field is then examined for byte separators (colon or period). If there are byte separators,
each subfield separated is taken to be a small hexadecimal number, and the entirety is taken as a network-byte-ordered quantity to be zero
extended in the high-network-order bytes. Next, the field is inspected for hyphens, in which case the field is assumed to be a number in
decimal notation with hyphens separating the millenia. Next, the field is assumed to be a number: It is interpreted as hexadecimal if
there is a leading ``0x'' (as in C), a trailing ``H'' (as in Mesa), or there are any super-decimal digits present. It is interpreted as
octal is there is a leading ``0'' and there are no super-octal digits. Otherwise, it is converted as a decimal number.
SEE ALSO
hosts(5), networks(5),
DIAGNOSTICS
None (see BUGS).
BUGS
The string returned by ns_ntoa resides in a static memory area.
ns_addr should diagnose improperly formed input, and there should be an unambiguous way to recognize this.
4.3 Berkeley Distribution May 12, 1986 NS(3N)