[ILUG] tips and stuff

kevin lyda kevin at suberic.net
Mon Sep 18 15:34:51 IST 2000


On Mon, Sep 18, 2000 at 03:17:12PM +0100, Donncha O Caoimh wrote:
> [a tip]

another tip: the way to deal with dos eol files:

tr -d '\r' < badfile > gudfile

and if you have a directory of them just do this (assuming you're
using something sh-like, if not just type sh first):

for f in */foo/*; do
tr -d '\r' < $f > $f.tmp
mv $f.tmp $f
done

(and you can exit out of sh if you had to run it by typing exit)

kevin

-- 
kevin at suberic.net        the only problem with being a man of leisure is
fork()'ed on 37058400    that you can never stop and take a rest.
meatspace place: home    http://suberic.net/~kevin/  yank? www.votenader.com
 >> want privacy? www.gnupg.org or www.pgp.com.  encrypted mail preferred <<




More information about the ILUG mailing list