Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
# Putting line 3 of file1.log to second line of file2.log
LINE=3
( head -1 file2.log
head -${LINE} file1.log | tail -1
tail --lines=+2 file2.log
) > file2.new
mv file2.log file2.old
mv file2.new file2.log
# Putting line 3 of file1.log to second line of file2.log
INSERT=2
REPLACE=3
WHICH=${REPLACE}
LINE=3
( head -1 file2.log
head -${LINE} file1.log | tail -1
tail --lines=+${WHICH} file2.log
) > file2.new
mv file2.log file2.old
mv file2.new file2.log
#!/bin/bash
LINE=3
( head -1 file2.log
head -${LINE} file1.log | tail -1
echo "line" >> -${LINE} file2.log
tail --lines=+2 file2.log
) > file2.new
mv file2.log file2.old
mv file2.new file2.log