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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -