Re: any dos2unix on Debian?

On 2006-07-18, zdk wrote:
Linux does not build with 'dos2unix' command?

How can I use this command? any .deb package or sourcecode to compile?

It doesn't need compiling. It's a simple script.

CR=`printf "\r"`
sed "s/$CR$//" "$file" > tempfile && mv "$tempfile" "$file"

Chris F.A. Johnson, author <>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence