How can we append text in a file via a one-line command without using io redirection?
You can use Vim in Ex mode:
ex -sc 'a|BRAVO' -cx file
a append text
a
x save and close
x