From owner-freebsd-questions Wed Jan 8 8:33: 2 2003 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 EDEAF37B401 for ; Wed, 8 Jan 2003 08:33:01 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5465343ED1 for ; Wed, 8 Jan 2003 08:33:01 -0800 (PST) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003010816330000100kcl04e>; Wed, 8 Jan 2003 16:33:00 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.6) with ESMTP id h08GZtBs082239; Wed, 8 Jan 2003 08:35:55 -0800 (PST) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.6/Submit) id h08GZn6m082236; Wed, 8 Jan 2003 08:35:49 -0800 (PST) (envelope-from swear@attbi.com) To: "BigBrother (BigB3)" Cc: freebsd-questions@freebsd.org Subject: Re: Renaming files with spaces in the name to files without spaces.. References: <20030108175539.W65616@bigb3server.bbcluster.gr> From: swear@attbi.com (Gary W. Swearingen) Date: 08 Jan 2003 08:35:49 -0800 In-Reply-To: <20030108175539.W65616@bigb3server.bbcluster.gr> Message-ID: Lines: 10 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Paste this into your shell: XXX="RESULTS OF JAN 01 2002.txt " YYY=${XXX%% } ZZZ=$(echo ${YYY} | tr ' ' '_') for III in "$XXX" "$YYY" "$ZZZ"; do echo "'$III'" done To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message