UNIX - LINFAQ32.ZIP - DOS2UNIX.SH

 
Output of file : DOS2UNIX.SH contained in archive : LINFAQ32.ZIP

#!/bin/sh
#
# Convert MS-DOS text files to Unix style text files by stripping out
# CR at end of line.
#
# Useage: dos2unix foobar.txt

tr -d '' < $1 | sed -e "s/
$//g" > uz.Tj+..3z1.tmp
mv uz.Tj+..3z1.tmp $1