Search Results

Search: Posts Made By: flee
11,019
Posted By flee
Hi All, Actually, the following statement: ...
Hi All,

Actually, the following statement:

d_arr[$c]=$ln
or
eval "d_arr[$c]=\${ln}"
b
both of the above statement work fine for double substitution, but if you look at the last couple...
11,019
Posted By flee
patjones, Thank you for your suggestion! I...
patjones,

Thank you for your suggestion!
I have tried declare -a d_arr at the beginning of the program, but it doesn't change anything, for dynamic assign value for an array variable, I tried:
...
11,019
Posted By flee
How do I perform double substitution in bash?
#!/bin/bash
#set -x
MAX=255
FILE=$1.dns_list
#declare -a d_arr

if [ -z "$1" ]
then
echo "Usage: `basename $0` network"
echo " e.g.`basename $0` 1.1.1"
exit ...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy