home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
yacl-012.zip
/
tools
/
stripcr
< prev
next >
Wrap
Text File
|
1994-10-02
|
274b
|
17 lines
#! /bin/sh
#
# Script to remove carriage returns from files
#
# Invoke with:
#
# stripcr f1 f2 f3 ...
#
# to remove carriage returns from the given files.
#
for f in $*; do
echo Processing $f
g=`basename $f`
tr -d '\015' < $f > /tmp/$g
mv /tmp/$g $f
done