### Sed ### Prepend string to file ====================== .. code-block:: bash sed -i '1s/^/some text that should be first\n/' /dir/file