Я нуждаюсь в использовании массива для установки значения переменной для дальнейших манипуляций из выходного файла.
сценарий:
> 1. fetch the list from database
> 2. trim the column using sed to a file named x.txt (got specific value as that is required)
> 3. this file x.txt has the below output as
10000
20000
30000
> 4. I need to set a variable and assign the above values to it.
A=10000
B=20000
C=30000
> 5. I can invoke this variable A,B,C for further manipulations.
Пожалуйста, дайте мне знать, как определить массив, присваивающий его переменной из выходного файла.
Спасибо.