[Gllug] regular expression

Martin A. Brooks martin at clues.ltd.uk
Thu Aug 5 13:55:53 UTC 2004


On Thu, 2004-08-05 at 14:52, Simon Jakesch wrote:
> Hi,
> 
> I am not too skilled when it comes to regular expressions and therefore can't 
> think of a way on how to turn this:
> ./Directory With Spaces/More Urgly Spaces/FileName.java

echo "/Dir /with  ugly/spaces/in it" | perl -e '$_=<>;s/ /\\ /g;print;'

-- 
Martin A. Brooks <martin at clues.ltd.uk>
Clues Ltd

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list