[Sussex] Trouble with BASH scripting....

John Crowhurst fyremoon at fyremoon.net
Mon Feb 20 22:18:11 UTC 2006


On Mon, February 20, 2006 20:30, Richie Jarvis said:
> But this falls flat on its face, and I cannot for the life of me work
out why (been trying all afternoon!)
> execute sed -e "s:.FileHandler.pattern =.*:.FileHandler.pattern
> =$INSTALL_DIR/logs/mvpdm.log:g" logging.properties.tmp >
> logging.properties

If you replace the space in .FileHandler.pattern =.*: with \s, and sed
will match your query. Set the \s to \s* and it will match the query if
the space is there or not.

-- 
John







More information about the Sussex mailing list