Move files with pattern in first line to target dir