User avatar
Lyn coweat verifiedlesbian @fugi@amazonawaws.com
2w
absolutely wild that there seems to be no single standard linux program that simply takes a filename as one argument and text to write to it as another, without needing to use shell features like io redirection, pipes or herestrings Oo

Edit: Yes I know I can spawn a shell if I don't have one (e.g. in a systemd service's ExecStartPre etc.), I know plenty of other workarounds I could use too. All I wanted to say is that it's weird that such a workaround
is needed.
2
0
7
0
User avatar
Lyn coweat verifiedlesbian @fugi@amazonawaws.com
2w
I can obviously just spawn /bin/sh -c 'echo 1 > file' from my systemd service's ExecStartPre or whatever, but that looks pretty ugly
0
0
4
0