vi copy from line number to line number
You can use split, or sed
Lets use command sed for example
in below given example we have start line number: 143 end line number 201 and file name: filter.log
output to file called outfile.log
# sed -n '143,201p' filter.log > outfile.log
other way to achieve copy:
Block selection VI
Using marker we can achieve that too.
to mark this spot as
Go to the end of the section you want.
Type: y’k (y= Yank,
Now p will do your job
Also you could use d’k to cut/delete.