I have the following function which opens a new file in vim but I want to insert a line of text into the first line of the new file.
function journ(){
datestring=`date +"%Y-%m-%d - %H%M%S - Rx2_Px -"`
notev $datestring Journal
}
notev calls this function:
function notev() {
vim "$*.md"
}
I want the first line of the file to read:
# name_of_file
notev?