Search Results

Search: Posts Made By: aramnani
63,314
Posted By aramnani
Hi, I found one solution. The space ...
Hi,
I found one solution.
The space difference between individual elements in file.txt is the key.
while IFS=" " read -r line
do
for i in ${!line}
do
echo "$i"
done
done <...
63,314
Posted By aramnani
How to get all the values for array defined in...
How to get all the values for array defined in each line?
63,314
Posted By aramnani
How to extract the individual element of array where array is assigned to another variable?
I have one file where at every line an array is defined.
Example:
file.txt
a=(1 2 3)
b=(4 5 6)
c=(7 8 9)

I have another file file1.txt where the variables are defined
a
b
c

in the...
Showing results 1 to 3 of 3

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