04/02/202010/21/2021 by bioinfocore Unix read command output into a variable Unix Unix Add $() to your command, as the example below var=$(head -n 1 inputFile)