User Tools

Site Tools


sed_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sed_notes [2021/01/28 21:47] – [replace text between two lines with a file] rajused_notes [2021/01/28 21:50] (current) raju
Line 1: Line 1:
  
 ==== replace text between two lines with a file ==== ==== replace text between two lines with a file ====
 +tags | line numbers, sed command to insert a file
  
 Replace lines between \$start and \$end in main.txt with contents of part.txt Replace lines between \$start and \$end in main.txt with contents of part.txt
Line 82: Line 83:
 j k l j k l
 </code> </code>
 +
 +Found it in: https://unix.stackexchange.com/questions/337435/sed-insert-file-at-top-of-another
  
 ==== backup with timestamp ==== ==== backup with timestamp ====
sed_notes.1611870458.txt.gz · Last modified: 2021/01/28 21:47 by raju