Script to convert dos to UNIX in Solaris

Hi Team,

I am trying to implement a script in Solaris, that required to find the list of files inside directories and convert those to dos2unix conversion,

Can someone please help here..

Below is the example of scenario.

var1/tmp/pkg/tts-conf/4.16.0/tts-dev1-conf/root/app/weblogic/Oracle/Middleware/domains/dev1/DomainSetenv.sh
var1/tmp/pkg/tts-conf/4.16.0/tts-dev1-conf/root/app/weblogic/setenv.sh
var1/tmp/pkg/tts-conf/4.16.0/ttss-dev1-conf/root/app/weblogic/scripts/abc
var1/tmp/pkg/tts-conf/4.16.0/tts-dev1-conf/root/app/weblogic/scripts/xyz

now I want to convert all these to dos format using

dos2unix file file 2</dev/null 

Thanks

Keeping in mind that

, why not try

dos2unix *

?
Your stderr redirection seems a bit weird.