How to run this external cmd: echo "test" >> "test.txt"

How to run exactly this shell cmd in julia?

echo “test” >> “test.txt”

Only halfway down is to use

run(pipeline(echo "test",“test.txt”))

because it does not append to “test.txt”.

Your help is very welcome. Thx.

run(pipeline(`echo "hello"`; stdout="test.txt", append=true))
6 Likes

Thx a lot for the fast support! Solved.