Python Execute Echo для файла
import os
string="This is test"
os.system("echo "+string+">> ~/Desktop/file.txt")
sirG
import os
string="This is test"
os.system("echo "+string+">> ~/Desktop/file.txt")