Date: Mon, 6 May 2002 10:04:05 -0400 From: Rob Ellis <rob@web.ca> To: Dmitry Mottl <dima@sinp.msu.ru> Cc: freebsd-questions@FreeBSD.org Subject: Re: CRLF shell scripts Message-ID: <20020506140405.GA84547@web.ca> In-Reply-To: <Pine.BSF.4.43.0205061530480.20553-100000@BigKing.sinp.msu.ru> References: <Pine.BSF.4.43.0205061530480.20553-100000@BigKing.sinp.msu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
I think you could do sed 's/^M$//' scriptname.sh | sh - sed 's/^M$//' Makefile | make -f - type Ctrl-V ENTER to get the ^M. - Rob On Mon, May 06, 2002 at 03:31:26PM +0400, Dmitry Mottl wrote: > I have a problem running shell scripts that have CRLF instead of LF. > I can't modify them, because they placed on cdrom. Also, there are a > plenty of makefiles with the same problem. > > So, is there a chance to make them working without coping files to > hard disk and modifying them localy? > > Thanks! > > - Dmitry > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020506140405.GA84547>