Sponsored Content
Top Forums UNIX for Advanced & Expert Users Need help converting ctlU (^U) to a \12... Post 302462178 by DGPickett on Wednesday 13th of October 2010 12:35:12 PM
Old 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

converting kb to mb

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

converting .txt

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

Converting to Uppercase

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

Converting

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

Converting \0 to a \n

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

Converting Coins

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

library converting

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

Help converting my Script

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

converting empty value into NA

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

Need Help in converting

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
inet_addr(3)						     Library Functions Manual						      inet_addr(3)

NAME
inet_addr - Translates an Internet network address string to an Internet address integer LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <arpa/inet.h> in_addr_t inet_addr( const char *string) ; STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: inet_addr(): XNS4.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Defines an Internet dot-formatted address character string of the form a.b.c.d, where a, b, c, and d may be expressed as decimal, octal, or hexadecimal integers in the C idiom. DESCRIPTION
The inet_addr() function translates a dot-formatted Internet character address string to an Internet address integer. The Internet address integer is returned as a network byte-ordered integer. Values specified using dot notation take on one of the following forms: When all four parts are specified, each is interpreted as a byte of data and assigned, from left to right, to the four bytes of an Internet address. When three parts are specified, the last part is inter- preted as a 16-bit quantity and placed in the rightmost two bytes of the network address. This format is convenient for specifying Class B network addresses as 128.net.host. When two parts are specified, the last part is interpreted as a 24-bit quantity and placed in the rightmost three bytes of the network address. This format is convenient for specifying Class A network addresses as net.host. When only one part is specified, the value is stored directly in the network address without any byte rearrangement. All numbers supplied as parts in dot notation can be decimal, octal, or hexadecimal, as specified in the ISO C standard. A leading 0x or 0X implies hexadecimal and a leading 0 implies octal. Otherwise, the number is interpreted as decimal. NOTES
The dot-formatted network-address a.b.c.d is returned as the machine integer dcba. RETURN VALUES
Upon successful completion, the inet_addr() function returns an equivalent network byte-ordered address integer. Otherwise, it returns (in_addr_t)-1. ERRORS
Current industry standards for inet_addr() do not define error values. RELATED INFORMATION
Functions: inet_netof(3), inet_lnaof(3), inet_makeaddr(3), inet_network(3), inet_ntoa(3) Standards: standards(5) Network Programmer's Guide delim off inet_addr(3)
All times are GMT -4. The time now is 02:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy