The following lines were added (+) and removed (-):
=== example: cat, head, and tail displaying a portion of a text file ===If you have a large text file and wish to display only a portion of the file from within (the center) sed -n '5001,6000p' largetextfile.txtstarts at line 5001 and ends at line 6000.This would be similar to head -n6000 largetextfile.txt | tail -n1000or tail -n5001 largetextfile.txt | head -n1000With sed you can grab text from the middle without having to pipe.