how do we print the entire contents of arrays in dbx ?
Ive tried using print x to print values 1 to 5 of the array x, however dbx complains and doesnt allow this
help is much appreciated (1 Reply)
Hello People,
Need some assistance/guidance.
OUTLINE:
Two files (File1 and File2)
File1 has some ids such as
009463_3922_1827
897654_8764_5432
File2 has things along the lines of:
Query= 009463_3922_1827 length=252
(252 letters)
More stufff here
... (5 Replies)
pls help
Input:
file1
word1
text1
word2
text2
word3
text3
file2
word1
text11
word3
text13
can u pls help in getting the same
output:
file1 text1 text2 text3 (1 Reply)
Dear All,
I am trying to sort an array of numbers to retrieve the mimimum and maximum values of numbers in that array, by printing the first and last elements of the sorted array. My code is @sorted_numbers = sort (@numbers);
print "@sorted_numbers\n";
print "$sorted_numbers,... (0 Replies)
Is there a way to print multiple array elements without iterating through the array using bash?
Can you do something like...
echo ${array}and get all those separate elements from the array? (2 Replies)
Hi, i have a big file having many opcodes.
if (opcode="01110000000100000000" ) then --fadd
result.opcode := "01110000000100000000";
result.s0 := '1';
result.s1 := '1';
result.s2 := '0';
result.inst := '0';
result.scalar := '1';... (7 Replies)
Hi folks,
A really dumb question as I've wasted far too long trying to get this to work.... (on RH bash)
I have an array:
m0='<hello>'
m0='<there>'
m0='<fred>'
v0='<goodbye>'
v0='<again>'
v0='<john>'
in my code I calculate the value of the variable to output and if I echo it, I... (2 Replies)
Hello Experts,
I am trying to print an array in reverse.
Input :
1. Number of array elements
2. The array.
Eg:
4
1 2 3 4
Expected Output (elements separated by a space) :
4 3 2 1
My Code : (6 Replies)
Hello!
I'm making an English to Morse Code translator and I was able to mostly get it all working by looking through older posts here; however, I have one small problem.
When I run it it's just printing spaces for where the characters should be. It runs the right amount of times, and if I try... (3 Replies)
Discussion started by: arcoleman10
3 Replies
LEARN ABOUT REDHAT
inet_pton
inet_pton(3) Linux Programmer's Manual inet_pton(3)NAME
inet_pton - Create a network address structure
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
int inet_pton(int af, const char *src, void *dst);
DESCRIPTION
This function converts the character string src into a network address structure in the af address family, then copies the network address
structure to dst.
inet_pton(3) extends the inet_addr(3) function to support multiple address families, inet_addr(3) is now considered to be deprecated in
favor of inet_pton(3). The following address families are currently supported:
AF_INET
src points to a character string containing an IPv4 network address in the dotted-quad format, "ddd.ddd.ddd.ddd". The address is
converted to a struct in_addr and copied to dst, which must be sizeof(struct in_addr) bytes long.
AF_INET6
src points to a character string containing an IPv6 network address in any allowed IPv6 address format. The address is converted to
a struct in6_addr and copied to dst, which must be sizeof(struct in6_addr) bytes long.
Certain legacy hex and octal formats of AF_INET addresses are not supported by inet_pton, which rejects them.
RETURN VALUE
inet_pton returns a negative value and sets errno to EAFNOSUPPORT if af does not contain a valid address family. 0 is returned if src does
not contain a character string representing a valid network address in the specified address family. A positive value is returned if the
network address was successfully converted.
SEE ALSO inet_ntop(3)BUGS
AF_INET6 does not recognize IPv4 addresses. An explicit IPv6-mapped IPv4 address must be supplied in src instead.
Linux Man Page 2000-12-18 inet_pton(3)