Use this command:
fromdos yourtextfile
The other way around:
todos yourtextfile
These commands are found in the **tofrodos** package (on most recent distributions), which also include the two wrappers *unix2dos* and *dos2unix* that mimic the old unix tools of the same name.