It turns out that unix has a nice little command called
echo
so what I can do is use this command to edit that file.
ShellCommand(
name = "append config instruction"
command=['echo','I am adding this configuration cause it was missing','>','~/user-config.jam']
)
This command will add that line in the configuration file.
if you want to make it look like "I am adding this configuration cause it was missing" I meant to add "" then
echo "\"xyz\"" > text.txt