I'm working on a script to execute a number of items. One being, editing particular files to add certain lines. I'm attempting to utilize sed, but, having issues when running from a bash script. Assistance is greatly appreciated.
My example:
sed -i '14 i\
# add these lines
add these lines to the file
add these line to the file'
/my/file/location | tee /my/file/location
This is suppose to insert the lines after "sed -i '14 i\," into line 14, overwrite and save.