view wrappers/unix2dos @ 573:c42ed3601b35

Simplify/unify listfiles recursion: populate directory node (and detect top of tree) at start of function rather than end (and redundantly in main). Move title printing down next to total printing.
author Rob Landley <rob@landley.net>
date Thu, 26 Apr 2012 19:59:38 -0500
parents 7da386057101
children
line wrap: on
line source

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

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