#/bin/bash head -n 1 filelist.txt > ~/filename sed -i '1d' filelist.txt