Replace line
Code:
files="/dev/MAKEDEV /etc/makedev.d /usr/sbin/mksock"
With following two lines:
Code:
INPUTFILE="/tmp/filelist.txt"
files="$(cat $INPUTFILE)"
It will read all filenames from /tmp/filelist.txt file and store list of files to files variable.