Sponsored Content
Full Discussion: 2d arrays in unix
Top Forums Shell Programming and Scripting 2d arrays in unix Post 302344636 by bakunin on Monday 17th of August 2009 07:35:28 AM
Old 08-17-2009
"Arrays" (of any dimension) are features of programming languages, not Operating Systems. Therefore there is no "2 dimensional array in unix" and your question just doesn't make any sense.

bakunin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing arrays to oracle from unix

Hi all Iam trying to send an array to oracle procedure from unix. Iam writing a program in K Shell to pass this array to oracle. Is it possible. Please advice thanks Krishna (7 Replies)
Discussion started by: krishnasai
7 Replies

2. UNIX for Dummies Questions & Answers

are Associative Arrays possible in UNIX?

Is it possible to say.. myArr=34 myArr=15 ? (11 Replies)
Discussion started by: yongho
11 Replies

3. Shell Programming and Scripting

Passing arrays to oracle from unix

Hi all... Im looking to pass the contents of a simple file to Oracle so that it can be stored in a database table. The best way i can think of to avoid overhead is to loop through the contents of the file and store the data in a bash array. then the array can be passed to SQL Plus where... (4 Replies)
Discussion started by: satnamx
4 Replies

4. Shell Programming and Scripting

Arrays in unix

I have a Main shell script file. In that the below lines(7) is spooled in Oracle & written to a file say temp.out INSTANCE_N ---------- undefined PROACT1 REPCAT1 PROACT2 REPCAT2 I want to ignore the first 3 lines & put the rest 4 lines PROACT1..REPCAT2 into the arrays. So that i can use... (2 Replies)
Discussion started by: dreams5617
2 Replies

5. Web Development

PHP arrays in arrays

PHP question... I have an SQL query that's pulled back user IDs as a set of columns. Rather than IDs, I want to use their names. So I have an array of columns $col with values 1,7,3,12 etc and I've got an array $person with values "Fred", "Bert", "Tom" etc So what I want to do is display the... (3 Replies)
Discussion started by: JerryHone
3 Replies

6. UNIX for Dummies Questions & Answers

Arrays in UNIX

Hi there, I have a small piece of code i=1 Number=10 while do echo "$i" Check=`cmd to give to me file name with path i=`expr ${i} + 1` done when i do in a loop echo "$Check"---------Unable to display, the values. ... (5 Replies)
Discussion started by: Naveen_5960
5 Replies

7. Shell Programming and Scripting

Parameters + arrays in unix shell

Say I have ./param HEY What would I do if I wanted to store each character into an array? Example. ARRAY1="H" ARRAY1="E" ARRAY1="Y" thank you! (5 Replies)
Discussion started by: puttster
5 Replies

8. Programming

question about int arrays and file pointer arrays

if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Discussion started by: omega666
1 Replies

9. UNIX for Dummies Questions & Answers

Arrays in unix

hi all, is there any method to declare each line of a text file to array variable. my text file is: 123 222 333 so, a=123 a=222 a=333 can anyone help me out pls... thanks in advance, Arun Manas:b: (4 Replies)
Discussion started by: arunmanas
4 Replies

10. UNIX for Advanced & Expert Users

Arrays with UNIX Commands

Hi, Can anyone please guide me to pass the values for an array during runtime and use it. I am using Linux OS. what I am trying to do is, i am trying to pass the output of the ls <source folder> command to a array and copy the list of files in the array to a different (Destination) folder.... (7 Replies)
Discussion started by: shyamshankarj
7 Replies
Judy(3X)																  Judy(3X)

NAME
Judy functions - C libraries for creating and accessing dynamic arrays SYNOPSIS
Judy1 - maps an Index (word) to a bit JudyL - maps an Index (word) to a word JudySL - maps an Index (string) to a word DESCRIPTION
The Judy family of functions supports fully dynamic arrays. These arrays may be indexed by a 32- or 64-bit word (depending on the proces- sor) or a string. A dynamic array that is sparsely populated can be thought of as a mapping function. There are 3 different Judy mappings currently supported: Judy1 maps an Index (word) to a bit. JudyL maps an Index (word) to a word. JudySL maps an Index (string) to a word. For Judy1 functions and JudyL functions, Index should be declared as a Word_t type. Word_t is defined in the Judy.h header file as a 32- or 64-bit unsigned native integer, and has the same number of bits as a pointer. For JudySL functions, each index is a null-terminated string. Judy arrays are both speed- and memory-efficient, with no tuning or configuration required, across a wide range of index set types (sequen- tial, periodic, clustered, random). Judy's speed and memory usage are typically better than other data storage models such as skiplists, binary trees, b-trees, or even hashing, and improves with very large data sets. A Judy array is created merely by defining a null pointer and then storing (inserting) the first element into the array under that pointer. The memory used by a Judy array is proportional to the population (number of elements). Judy has two Application Program Interfaces (APIs): a C macro interface, and a function call interface. Because the macro forms are faster and have a simpler error handling interface than the equivalent functions, they are the preferred way of calling the Judy functions. Since an initial (empty) Judy array is represented by a null pointer, it is possible to construct an array of Judy arrays. In other words, a Judy array's values (except Judy1) can be pointers to other Judy arrays. AUTHOR
Judy was invented and implemented by Hewlett-Packard. (Note: Judy is named for the inventor's sister.) FILES
Locations of interest include: Documents, including HTML versions of the manual entries. Demonstration program source files. SEE ALSO
Judy1(3X), JudyL(3X), JudySL(3X), the Judy website, http://www.hp.com/go/judy/, for more information and Application Notes. Judy(3X)
All times are GMT -4. The time now is 11:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy