Remove new lines from files and folders

rename 's/[\r\n]//g' *

September 30, 2017moverperfect

Explanation

This will search all files and folders in the current directory for any with a new line character in them and remove the new line out of the file/folder.