#!/bin/bash while read LINE do NAME=$(echo $LINE |awk '{print $1}') AGE=$(echo $LINE |awk '{print $2}') done < student_info.txt