From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Taylor Subject: Re: Stupid spaces Date: Fri, 13 Feb 2004 09:15:36 -0800 Sender: linux-admin-owner@vger.kernel.org Message-ID: <5.2.1.1.0.20040213091251.00b01e18@mustang> References: <5.2.1.1.0.20040212130333.00b0f4a0@mustang> <5.2.1.1.0.20040212130333.00b0f4a0@mustang> <402C7402.3030608@fasw.co.id> Mime-Version: 1.0 Return-path: In-Reply-To: <402C7402.3030608@fasw.co.id> References: <5.2.1.1.0.20040212130333.00b0f4a0@mustang> <5.2.1.1.0.20040212130333.00b0f4a0@mustang> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: linux-admin@vger.kernel.org At 10:51 PM 02/12/2004, Agus Budy Wuysang wrote: >Scott Taylor wrote: > >If you're lucky enough to have bash V2, use (faster): > >for f in *;do mv -i "$f" "${f// /}";done > >otherwise: > >for f in *;do mv -i "$f" "$(echo $f|tr -d ' ')";done This last works, it also works in more then just bash so I like it best. I have more then one OS that store Windows files for users. :) I don't remember using echo in it last time but, it works... Cheers. Scott.