From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Taylor Subject: Re: Stupid spaces Date: Fri, 13 Feb 2004 09:33:35 -0800 Sender: linux-admin-owner@vger.kernel.org Message-ID: <5.2.1.1.0.20040213092853.027a3e80@mustang> References: <5.2.1.1.0.20040213082821.00acdce8@mustang> Mime-Version: 1.0 Return-path: In-Reply-To: References: <5.2.1.1.0.20040213082821.00acdce8@mustang> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: linux-admin@vger.kernel.org At 09:26 AM 02/13/2004, rich+ml@lclogic.com wrote: >Works for me, however I did forget to quote $x in original example. That would do it. for x in *; do mv "$x" ${x// /}; done removes the spaces, but only works in bash 2. :(