On 3/10/06, Bryan Sant <[EMAIL PROTECTED]> 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


Justin

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to