Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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'
Comment

PREVIOUS NEXT
Code Example
Shell :: delete all container and images docker 
Shell :: start docker at boot 
Shell :: kill adb device or emulator 
Shell :: count files in a directory 
Shell :: pod install mac m1 
Shell :: install docker compose 
Shell :: install phpmyadmin mac 
Shell :: unregister distro 
Shell :: wget command not found mac 
Shell :: bash echo to stderr 
Shell :: how to save iptables 
Shell :: .env.local not working react 
Shell :: push project to github 
Shell :: get connected wifi password windows 11 
Shell :: kubectl get all the pods 
Shell :: ubuntu install webstorm 
Shell :: sync show progress 
Shell :: palindrome in shell script 
Shell :: ubuntu 20.04 powerlevel10 vs code 
Shell :: install github linux 
Shell :: streamlink save to file 
Shell :: how to uninstall neovim on linux 
Shell :: flutter create new project 
Shell :: No module named SimpleHTTPServer 
Shell :: Error: ENOSPC: System limit for number of file watchers reached, 
Shell :: find large files in ubuntu 
Shell :: install .deb file in ubuntu 
Shell :: install nuxt 
Shell :: how to know what container is using a volume? 
Shell :: mongodb restart command ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =