remove line feed and concat files in a directory