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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -