Mercurial > hg > toybox
view wrappers/dos2unix @ 543:60b97ba66a70
Extensive semi-gratuitous refactoring: factor out common code, handle euid!=uid and egid!=gid cases. (Note: test suite requires root access, possibly container support.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 12 Mar 2012 23:00:28 -0500 |
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$//' "$@"