On ubuntu 10.04 dos2unix and unix2dos are removed so you have to install this package :
sudo apt-get install tofrodos
Then you use this script to convert all files in specified path from dos to unix format
convert2unix
	sudo chmod 0755 convert2unix
Usage : sudo convert2unix "/var/www"
					sudo apt-get install tofrodos
Then you use this script to convert all files in specified path from dos to unix format
convert2unix
Code:
	#!/bin/bash
PATH=$1
RESULT=$(/usr/bin/find $PATH/ '!' -type d -exec /usr/bin/fromdos {} \;)
Usage : sudo convert2unix "/var/www"

