How to assign specific line from another file to a variable in bash -
i have file has 2 numerical values...
22
35
i want read values , assign each variable.
there ever 2 values, loop shouldn't necessary.
i found ways value line line, i'm unsure how save values variable can use in main script.
another way read 2 lines in succession is:
{ read var1 ; read var2 ; } <data
Comments
Post a Comment