view wrappers/dos2unix @ 496:f0247cfc37f2

Don't mix the the probed symbols with the command symbols.
author Rob Landley <rob@landley.net>
date Thu, 23 Feb 2012 21:03:18 -0600
parents 7da386057101
children
line wrap: on
line source

#!/bin/sh
#HELP usage: dos2unix [FILE...]\n\nRemove DOS newlines

[ $# -ne 0 ] && DASH_I=-i
sed $DASH_I -e 's/\r$//' "$@"