Read File (1st Method)

while read -r line
do
	echo $line
done < filename

Read File (2nd Method)

cat filename | while read -r line
do
	echo $line
done

Read File (3rd Method)

# File Content
# cyberciti.biz|202.54.1.1|/home/httpd|ftpcbzuser
# nixcraft.com|202.54.1.2|/home/httpd|ftpnixuser
 
file=/tmp/domains.txt
 
# Internal File Descriptor
IFS='|' 
 
while read -r domain ip webroot ftpusername
do
	echo $domain
	echo $ip
	echo $webroot
	echo $ftpusername
done < "$file"