Artifact 26ad6c28972df75ef683b055dffdd7cfc2112ca981ba625c340d332e815c83ef:
- Executable file
r38/dos2unix.sh
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 479) [annotate] [blame] [check-ins using] [more...]
#! /bin/sh -v # Convert files from DOS to Unix format # Usage: # dos2unix.sh file1 file2 ... # converts in-place # if test "$#" = "0" then echo Usage: dos2unix.sh file1 file2 ... exit 0 fi for x in $@ ; do if test -d $x then echo $x is a directory in dos2unix.sh exit 0 fi # BEWARE. I believe that not all versions of "tr" are compatible! tr -d "\r" < $x > /tmp/dos2unix.tmp mv /tmp/dos2unix.tmp $x if test "x$verbose" != "x" then echo File $x converted to Unix style fi done