pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] 0.11.3 question


From: Eric Ortega
Subject: Re: [Pan-users] 0.11.3 question
Date: Tue, 27 May 2003 15:05:52 -0700
User-agent: Mutt/1.5.3i

On Tue, May 27, 2003 at 05:19:48PM -0400, John Aldrich wrote:

> Here's a handy little perl script someone whipped up to convert spaces to "_" 
> in filenames for me.... 

<snip>

I use this shell script:

  #!/bin/bash
  find . -maxdepth 1 -name "* *" -print | while read o_fname
  do
    n_fname=$(echo "$o_fname" | tr ' ' '_')
    mv "$o_fname" $n_fname
  done


Change maxdepth for recursion.


HTH




reply via email to

[Prev in Thread] Current Thread [Next in Thread]