Sponsored Content
Top Forums Shell Programming and Scripting naming variables with variables Post 302209567 by Allasso on Friday 27th of June 2008 10:45:41 AM
Old 06-27-2008
thank you. Someone pointed me to using an array, and I think that is going to do exactly what I want.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

variables

the oracle variables in the .profile are not listed. any thoughts? thanks, rs (15 Replies)
Discussion started by: rsh
15 Replies

2. UNIX for Dummies Questions & Answers

Using Variables to Set Other Variables

I have a script that I'm trying to shorten (below) by removing repetitive code. if ] then commodity_ndm_done=Y fi if ] then customer_ndm_done=Y fi if ] then department_ndm_done=Y fi if ] then division_ndm_done=Y fi (3 Replies)
Discussion started by: superdelic
3 Replies

3. Shell Programming and Scripting

Variables Naming in Korn Shell

Hi every body, I want to know what is the different between the following: $VAR1 ${VAR2} "${VAR3}" Are they equivalent? Thanks in advance (1 Reply)
Discussion started by: aldowsary
1 Replies

4. UNIX for Dummies Questions & Answers

Variables

data1 contain: 100;1 390;3 1;2 144;6 data2 contain: 100;1 300;4 1;2 130;4 144;6 390;3 ..... .... .......... and so on... (1 Reply)
Discussion started by: bobo
1 Replies

5. Programming

How to convert byteArray variables to HexaString variables for Linux?

Hello everybody, I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
Discussion started by: ritesh_163
2 Replies

6. Shell Programming and Scripting

if two or more variables?

Hi all, i need to read a variable and analyze if there are one or more variable: read VAR if "VAR is one ore two or more"; then ... else ... fi Can anybody help? Regards (12 Replies)
Discussion started by: marimovo
12 Replies

7. Shell Programming and Scripting

Running a script with multiple variables like 25 variables.

Hi All, i have a requirement where i have to run a script with at least 25 arguements and position of arguements can also change. the unapropriate way is like below. can we achieve this in more good and precise way?? #!/bin/ksh ##script is sample.ksh age=$1 gender=$2 class=$3 . . .... (3 Replies)
Discussion started by: Lakshman_Gupta
3 Replies

8. Shell Programming and Scripting

BASH arrays and variables of variables in C++

Sometimes it is handy to protect long scripts in C++. The following syntax works fine for simple commands: #define SHELLSCRIPT1 "\ #/bin/bash \n\ echo \"hello\" \n\ " int main () { cout <<system(SHELLSCRIPT1); return 0; } Unfortunately for there are problems for: 1d arrays:... (10 Replies)
Discussion started by: frad
10 Replies

9. Shell Programming and Scripting

Passing awk variables to bash variables

Trying to do so echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies

10. UNIX for Dummies Questions & Answers

How to pass variables into anothother variables?

Below are three variables, which I want to pass into variable RESULT1 username1=userid poihostname1=dellsys.com port1=8080 How can I pass these variables into below code... RESULT1=$((ssh -n username1@poihostname1 time /usr/sfw/bin/wget --user=sam --password=123 -O /dev/null -q... (4 Replies)
Discussion started by: manohar2013
4 Replies
memory(3C)																memory(3C)

NAME
memory: memccpy(), memchr(), memcmp(), memcpy(), memmove(), memset(), bcmp(), bcopy(), bzero(), ffs() - memory operations SYNOPSIS
Remarks and are provided solely for portability of BSD applications, and are not recommended for new applications where portability is important. For portable applications, use and respectively. has no portable equivalent. DESCRIPTION
These functions operate as efficiently as possible on memory areas (arrays of bytes bounded by a count, not terminated by a null byte). They do not check for the overflow of any receiving memory area. Definitions for all these functions, the type and the constant are provided in the header file. Copy bytes from the object pointed to by s2 into the object pointed to by s1, stopping after the first occurrence of byte c has been copied, or after n bytes have been copied, whichever comes first. If copying takes place between objects that overlap, the behavior is undefined. returns a pointer to the byte after the copy of c in s1, or a NULL pointer if c was not found in the first n bytes of s2. Locate the first occurrence of c (converted to an in the initial n bytes (each interpreted as of the object pointed to by s. returns a pointer to the located byte, or a NULL pointer if the byte does not occur in the object. Compare the first n bytes of the object pointed to by s1 to the first n bytes of the object pointed to by s2. returns an integer greater than, equal to, or less than zero, according to whether the object pointed to by s1 is greater than, equal to, or less than the object pointed to by s2. The sign of a non-zero return value is determined by the sign of the difference between the values of the first pair of bytes (both interpreted as that differ in the objects being compared. Copy n bytes from the object pointed to by s2 into the object pointed to by s1. If copying takes place between objects that overlap, the behavior is undefined. returns the value of s1. Copy n bytes from the object pointed to by s2 into the object pointed to by s1. Copying takes place as if the n bytes from the object pointed to by s2 are first copied into a temporary array of n bytes that does not overlap the objects pointed to by s1 and s2, and then the n bytes from the temporary array are copied into the object pointed to by s1. returns the value of s1. Copy the value of c (converted to an into each of the first n bytes of the object pointed to by s. returns the value of s. copies n bytes from the area pointed to by s1 to the area pointed to by s2. Compare the first n bytes of the area pointed to by s1 with the area pointed to by s2. returns zero if they are identical; non-zero other- wise. Both areas are assumed to be n bytes in length. Clear n bytes in the area pointed to by s by setting them to zero. Find the first bit set (beginning with the least significant bit) and return the index of that bit. Bits are numbered starting at one. A return value of 0 indicates that i is zero. International Code Set Support These functions support only single-byte byte code sets. WARNINGS
The functions defined in were previously defined in FILES
SEE ALSO
string(3C), thread_safety(5), glossary(9). STANDARDS CONFORMANCE
memory(3C)
All times are GMT -4. The time now is 10:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy