The Groundhog List (was Re: Re removing hyphens from filenames)
jns at gellyfish.com
Thu Jul 12 14:22:09 BST 2007
On Thu, 2007-07-12 at 14:49 +0200, Andreas Plesner Jacobsen wrote:
> On Thu, Jul 12, 2007 at 02:28:52PM +0200, Abigail wrote:
> > > >for f in `find . -name '*-*'`; do mv $f `echo $f | tr -d -`; done
> > >
> > > I generally avoid the use of `for' in operations such as this - you
> > > never know when people have created files with spaces in the name.
> > In that case:
> > IFS=
> > for f in `find . -name '*-*'`; do mv $f `echo $f | tr -d -`; done
> I'd rather do a:
> find -print0 . <find-pattern> | xargs -0 <file manipulation commands>
> That solves any problems wrt shell limits on parameter count and special
Just so we don't miss out on anything that we might have discussed in
the past, maybe we should start with "What substances do you find
enhances the programming experience"
 yes, that is a deliberate in-joke for anyone who was wondering.
More information about the london.pm