Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: aramnani
5,153
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 <...
5,153
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?
5,153
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

 

Featured Tech Videos

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