[linux-help] Re: program won't execute.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 7 Aug 2000, mjacobs wrote:
> I think you nailed it with th dos/unix cr/lf issue. if I cat the file
> and paste it into a new vi window that script now runs. Is there a
> utility that will do this for other files without pasting?
Glad to be of help.
Try 'tr'. If you
tr -d '\013' <infile >outfile
that should take care of it.
I was thinking that there was a pair of utilities specifically for this
(unix2dos, dos2unix) but I must have used those on BSD/OS.
--
Carl D Cravens (raven@xxxxxxxxxxx)
BASIC programmers never die, they GOSUB without RETURN.
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
|
|