Created
March 25, 2017 01:02
-
-
Save jccorrea/08f9a2928af6af8483df9dda12e9b447 to your computer and use it in GitHub Desktop.
append header to text file . by Dennis Williamson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'task goes here' | cat - todo.txt > temp && mv temp todo.txt | |
or | |
sed -i '1s/^/task goes here\n/' todo.txt | |
or | |
sed -i '1itask goes here' todo.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment