On Fri, Mar 18, 2011 at 7:05 PM, Dr. Ed Morbius <dredmorb...@gmail.com>wrote:
> on 19:08 Fri 18 Mar, Joao Ferreira gmail (joao.miguel.c.ferre...@gmail.com) > wrote: > > On Fri, 2011-03-18 at 18:59 +0100, Andrej Kacian wrote: > > > On Fri, 18 Mar 2011 17:46:04 +0000 > > > Joao Ferreira gmail <joao.miguel.c.ferre...@gmail.com> wrote: > > Please note that '#' is a valid filesystem name character. > > There are relatively few values which are safely excludable. In your > case this shouldn't be a problem, but in the general case (I'm working > on a script that needs to do path parsing) it's a bit of a pain. > > > i agree with that - the underscore that was used is also valid. you might look at proper quoting of variables to avoid this. something like cat text.txt | sed -e 's/bbb.*/bbbb:"$PWD"/' > new.txt