FILES=$(less mythbackend.log | grep autoexpire | cut -d" " -f10 | uniq | cut -d"." -f1-2) #produces list of ~5500 files while read line do touch "$line" done <<< "$FILES"