From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Taylor Subject: Stupid spaces Date: Thu, 12 Feb 2004 13:08:04 -0800 Sender: linux-admin-owner@vger.kernel.org Message-ID: <5.2.1.1.0.20040212130333.00b0f4a0@mustang> Mime-Version: 1.0 Return-path: List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: linux-admin@vger.kernel.org Hello all, I've done this before, but so long ago I can't find it again. I have a bunch of files with spaces in them and I want to rename them with the spaces removed. I have a rename command that came with RH7.2 but doesn't do the job rename 's/\ //g' * does nothing in bash So I wrote a script many moons ago to do this but I can't remember which server it was on, let alone how I did it. Something with tr and mv methinks. anyone?