Help me make it shut up please!

Justin Findlay jfindlay at
Fri Mar 10 12:28:22 MST 2006

On 3/10/06, Bryan Sant <bryan.sant at> wrote:
> What *is* at the end of each line?  I would have thought that the end
> of each line ends with \r\n as is typical on Windows systems.  Does
> GCC really complain about that?  Well, anyway, to get rid of the \r
> and just have the \n at the end do this in your build root:
> find . -type f | xargs tr -d '\r'
> This should delete all \r from every file (leaving only the \n at the
> end of a line) in your directory structure.

You can also use dos2unix, but this is kind of ugly.

$ for i in $(find . -type f -print0 | xargs -0ri file -F ^ {} | grep
text | cut -f 1 -d ^) ; do dos2unix $i ; done


More information about the PLUG mailing list