# Basic syntax: fc -l start_line end_line # or pipe to sed or awk history | sed -n 'start_line,end_linep' history | awk 'NR >= start_line && NR <= end_line'