Prepend Text to a File at the Command Line
You can easily prepend text to a file from the command line by using the following command syntax: cat file.txt | pbcopy && echo “Text to prepend” > file.txt && pbpaste >> file.txt In this case, the file to have text prepended to is ‘file.txt’, replace that with your own document. You may wish to … Read More