#!/bin/bash words=(`cat file`) echo ${words[0]}xyz