Re: [UNIX NEWBIE] - scripting help

From: Eric Helvey (helver@alliances.org)
Date: 02/12/99


Well it wasn't perfect... but probably doing something like this would be
a little better:

/bin/ls -1 *.c *.h | gawk '{system("dos2unix -ascii "$1" "$1".tmp");system("mv "$1".tmp "$1);}'

Eric

On Fri, 12 Feb 1999, Mark A. Heilpern wrote:

> I believe I stand corrected :) I didn't take a close enough look the
> first time. Sorry if I mislead anyone.
>
>
> At 09:27 AM 2/12/99 -0800, you wrote:
> >> made it more simple since it's a temp file only.
> >>
> >> At 11:02 AM 2/12/99 -0600, you wrote:
> >> >try something like....
> >> >
> >> >/bin/ls -1 | gawk '{system("tr -d \"\\015\" < "$1" > "$1".tmp");system("mv
> >> >"$1".tmp "$1);}'
> >> >
> >> >Eric
> >> >


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST