[Sussex] Trouble with BASH scripting....

John Crowhurst fyremoon at fyremoon.net
Tue Feb 21 19:07:58 UTC 2006


On Tue, February 21, 2006 13:36, Richie Jarvis said:
> Now, another Q - how do I make it put spaces IN in the output?  \s
> doesn't work (it puts an 's' in) - I think half the problem is that I
> have the execute function doing the work, and it is stripping out the
> double-quotes when it is passed thru - any ideas how to stop this
> happening (putting \" doesn't do it, it then throws a wobbly!)

If you execute the sed without the execute function, it works fine. As
soon as you call it within the execute function it throws a wobbly!

This may defeat your use of execute, but if you use backticks it also
works fine:

execute `sed -e "...`

-- 
John




More information about the Sussex mailing list