[plug] Remove first spcae in a filename
    Mike Holland 
    myk at golden.wattle.id.au
       
    Wed Jul 11 10:17:53 WST 2001
    
    
  
On Wed, 11 Jul 2001, Anthony J. Breeds-Taurima wrote:
> On Tue, 10 Jul 2001, Christian Müller wrote:
> 
> > Hi,
> >
> > I have just created a bunch of files and unfortunatelly seem to have a
> > space as the first charater. How do I remove this space considering that
The powerful pattern-matching abilities of Perl would be useful here.
e.g.
     for ( * ) { if ( /\ (.+)/ ) { rename $_, $1 } }
> > anyone know on how I can do this on the bash shell?
Of course that doesnt really answer your question (as Tony did), but I
love a bit of Perl-mongering.
-- 
Mike Holland  <mike at golden.wattle.id.au>
                          --==--
    
    
More information about the plug
mailing list