sed -i -e '78r../../insert_file' File_you_change.txt # insert line 78 what include in insert_file , -i will update, check without -i insertfile loated in two folder back ../../