answersLogoWhite

0

How do you use arrays in unix?

Updated: 11/11/2022
User Avatar

Wiki User

13y ago

Best Answer

Unix itself does not use arrays. However, some shell scripting languages such as bash or ksh have simple rudimentary uses of a singly dimensioned array.

If you want anything multi-dimensional or special use such as associative arrays, then you need a scripting language such as perl, or awk or python, etc.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use arrays in unix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the use of execute command in unix?

There is no traditional 'execute' command in Unix.


Name two smaller arrays you can use to find the product of 8x6?

name two smaller arrays you can use to find the product


Is it possible to use BSD software on Unix systems?

It is possible to use BSD software on Unix systems. It is possible but many do not and they use other softwares on Unix systems beside the BSD software.


Why do you use antenna arrays?

To improve the signal :)


Where you can use Unix?

Unix can be used on a large number of mainframes, servers, and workstations. If you would like to use a certified UNIX system on commodity hardware, Solaris 10 can be downloaded free of charge for non-commercial use.


Are there still people using unix?

Yes, quite a bit of companies and users use unix.


I am currently using windows XP2. For practice purpose i want to use UNIX shell scripting. Without installing UNIX OS how can i use the UNIX shell scripting?

You should be able to download the Unix Services for Windows, version 3.5, from Microsoft (free). There are other shell emulators that are available for Windows, which would allow you to use Unix type shell scripting without installing any additional OS. Your question about "virtual UNIX" is unclear ..


How can you use arrays to determine if a number prime or composite?

Yes


How do you use arrays and expanded algorithm like 29x47?

1363


Dynamically allocated array waste storage and time?

It's actually not true. In order to make a good program which can work with big arrays you have to use dynamic arrays because you can cleam memory used by dymanic arrays any time. For static arrays is not true, memery which was reserved for static arrays will be available for other applications only when you finish working with your application (which is working with static arrays).


Can you use a DOS formatted floppy in UNIX?

Yes you can. Unix understands both FAT32 and NTFS file systems.


Why do you use ampersand symbol for arrays and not for a string?

You don't need to use ampersand for arrays; it's entirely optional even for strings (character arrays). This is because arrays will implicitly convert to a pointer at the slightest provocation. Thus for an array named X, you can either pass the array to a function as X, &X or &X[0], they all refer to the exact same address.