Skip to end of metadata
Go to start of metadata

Emacs

SED

  • Usage of sed to substitute and replace text in a file between certain range of lines

sed '<startLine>,<endLine> s/A/a/' <filename> > <modified_filename>

For example command: sed '37,72 s/:0.1/:0.2/' mig-allpars-missing_0.1.txt >temp.txt

changes text ':0.1' to ':0.2'  between lines 37 and 72 including 37 and 72 

Labels
  • None