From owner-freebsd-questions@FreeBSD.ORG Fri May 23 13:03:20 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 863EB37B401 for ; Fri, 23 May 2003 13:03:20 -0700 (PDT) Received: from dhumketu.homeunix.net (dialpool-210-214-64-213.maa.sify.net [210.214.64.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id C663443FBF for ; Fri, 23 May 2003 13:03:18 -0700 (PDT) (envelope-from freebsd@dhumketu.cjb.net) Received: by dhumketu.homeunix.net (Postfix, from userid 1000) id 9DEA768A; Sat, 24 May 2003 00:28:19 +0530 (IST) Date: Sat, 24 May 2003 00:28:19 +0530 From: Shantanu Mahajan To: Fernando Gleiser Message-ID: <20030523185819.GA1266@dhumketu.homeunix.net> Mail-Followup-To: Fernando Gleiser , freebsd-questions@freebsd.org References: <20030522165345.O35791-100000@cactus.fi.uba.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030522165345.O35791-100000@cactus.fi.uba.ar> User-Agent: Mutt/1.4i Organization: Hmmm... I dunno X-OS: FreeBSD 4.8-STABLE i386 cc: freebsd-questions@freebsd.org Subject: Re: Maybe OT: Automatic CRLF conversion? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2003 20:03:20 -0000 +-- Fernando Gleiser [freebsd] [22-05-03 17:05 -0300]: | Here's my problem: I have a FreeBSD server running an aplication. | The operators of the aplication (read: people who doesn't know Unix) | need to upload some files to the server, and the aplication reads them. | | The files are flat ASCII. | They where using FTP in ASCII mode for that, but they wanted it | to be "even easier", so I set up Samba on the server and they just | drag and drop the files. The problem is with the CRLF conversion, | because the app needs the files the unix way, but they upload them | the DOS way. | | I need an automatic way to handle the conversion, since there is nobody | who knows Unix there, and I can't tell them "run such command". They | have no shell access. | | | I was thinking of writing a little script which runs from cron, converts | the files and then moves them to the final dir, but maybe there is a way of | doing it from samba itself. | | Does anybody have any idea? | | Thanks in advance and sorry for the OT. | | | Fer | ------------------------------ col -bx < file > newfile This will remove ^M from the file. Regards, Shantanu -- Madness has no purpose. Or reason. But it may have a goal.