from the command line to redirect an ouptput to another file I am aware that I can do something like this
$ echo randomText > file.md
I am also aware that, if I want to append the output to the end of the file, I can do something like this
$ echo randomText >> file.md
Now if I cat the content of file.md I will see something like
randomText
randomText
Is there a way to format the output that is being sent to the file. Rather than appending to the end I am hoping to achieve something like this
randomText ----------------------------------- randomText
-------------------------------------- randomTextinstead?printf,fmt,pr,indent,[nt]roff,tbl, and many other, along with other scripting tools (awk,perl,sed, evened), all are capable of various types of formatting. You might need to better specify exactly what kind of thing you're trying to do...