Answers for "bash return specific lines from history"

1

bash return specific lines from history

# 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'
Posted by: Guest on January-18-2022

Code answers related to "bash return specific lines from history"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language