From owner-freebsd-questions Mon May 6 7: 4:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from spin.web.net (spin.web.net [192.139.37.16]) by hub.freebsd.org (Postfix) with ESMTP id BC3B137B400 for ; Mon, 6 May 2002 07:04:08 -0700 (PDT) Received: by spin.web.net (Postfix, from userid 1000) id CB20312E8C9; Mon, 6 May 2002 10:04:05 -0400 (EDT) Date: Mon, 6 May 2002 10:04:05 -0400 From: Rob Ellis To: Dmitry Mottl Cc: freebsd-questions@FreeBSD.org Subject: Re: CRLF shell scripts Message-ID: <20020506140405.GA84547@web.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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