Grab two variables from a two column text file
rated 0 times [ 0] [ 0] / comments: 0 / hits: 327 / 2 yaers ago, thu, nov 2, 2017, 09:36:12
This came in handy when I had to use both columns in a file as variable 1 and variable 2.
#!/bin/bash while read VAR1 VAR2; do # Do stuff here echo $VAR2 echo $VAR1 done </path/to/input-file
More From » general