So i have a bash code that wont read my array, the array is a text file made into an array...writing a scanner program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So i have a bash code that wont read my array, the array is a text file made into an array...writing a scanner program

I simply used my head -1 pipe sed to append var_name=( at the begining of the text file and tail -1 pipe sed to append ) to the end of the last line of the text folder but the program is refusing to read the array....any suggestions??? As said the array is a text file made to an array so the values arent one after the other but instead they are new line values, but i know bash arrays can read next line values as the next value....can they not???

22nd Feb 2022, 2:45 AM
KiddBuu
KiddBuu - avatar
0 Answers