#!/bin/bash
#TITLE : ReadFile.sh
#CREATED : 09/24/2014
#CREATED BY :
#########################################################
##Example 1
NAME=$(head -1 NameFile.txt) #head takes the first lines from a file, and the -n parameter can be used to specify how many lines should be extracted.
echo -e "\nThe first name is $NAME!!"
##Example 2
read -r FIRSTLINE<NameFile.txt #FIRSTLINE will be your variable (No need to assign to another)
echo -e "\nThe first name is $FIRSTLINE!!"
#LIST
awk 'FNR>2' NameFile.txt