From owner-freebsd-questions@FreeBSD.ORG Fri May 23 13:29:23 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 1520937B401 for ; Fri, 23 May 2003 13:29:23 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACEA143F3F for ; Fri, 23 May 2003 13:29:20 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.12.3/8.12.3) with ESMTP id h4NKRXRi050587 for ; Fri, 23 May 2003 17:27:33 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Fri, 23 May 2003 17:27:33 -0300 (ART) From: Fernando Gleiser To: freebsd-questions@freebsd.org In-Reply-To: <20030523185819.GA1266@dhumketu.homeunix.net> Message-ID: <20030523171250.F35791-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-110.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTE_TWICE_1,USER_IN_WHITELIST version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) 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:29:23 -0000 On Sat, 24 May 2003, Shantanu Mahajan wrote: > > col -bx < file > newfile > > This will remove ^M from the file. Some people replied with answers like that. I thank you very much for the help, but I already knew beforehand at least a dozen different ways of doing it by hand, including but not limited to: sed, perl, awk, dos2unix, vi, tr, ed and custom C code. As I said in my first mail people DON'T have shell access to the server, they don't know and don't want to know anything about Unix and I have many other things to do other than waiting for them to call me every time they upload a file (20-30 times a day) to fix things. I want to know if samba has the equivalent of FTP's ASCII transfer so it handles the conversion "on the fly". If it doesn't I'll go the cron or wait_on (thanks Chris for the pointer) way to monitor the directories and run the script every time people upload a file. Thanks again. Fer