view wrappers/dos2unix @ 412:2b521c791e4e

Patch shouldn't be bothered by DOS newlines.
author Rob Landley <rob@landley.net>
date Sun, 22 Jan 2012 22:28:04 -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$//' "$@"