Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash print specific range of rows from a file

# Basic syntax with sed:
sed -n 'start,endp' input_file.txt
# Where start and end are numbers that inclusively define the range. E.g.
sed -n '17,23p' input_file.txt # To print the [17-23] rows
Comment

PREVIOUS NEXT
Code Example
Shell :: react testing using jest along with code coverage 
Shell :: ssh operation timed out mac 
Shell :: graphql install 
Shell :: linux install qt5widgets 
Shell :: git pull upstream 
Shell :: how to find my apache server ip address 
Shell :: see what user a process is running as 
Shell :: How to Install Google Chrome on Centos 8 
Shell :: uninstall xbox game bar 
Shell :: how to add new origin in git 
Shell :: how to revert back to previous commit in git permanently 
Shell :: bash htop 
Shell :: video to gif ffmpeg 
Shell :: move running terminal process to background linux 
Shell :: untar file in linux 
Shell :: scp connection refused 
Shell :: git stash apply specific stash 
Shell :: find location for powershell profile ps1 file 
Shell :: delete git remote heroku 
Shell :: install curl ubuntu 
Shell :: git how to archive a branch 
Shell :: pgadmin4 container 
Shell :: clean remove npm with cache 
Shell :: git stash pop index 
Shell :: cordova run device 
Shell :: bash cd or make dir if not exists 
Shell :: odoo12 installation in ubuntu 16.04 
Shell :: how to check installed apps in ubuntu 
Shell :: ubuntu server clean up disk space 
Shell :: how to change permissions on a file in linux 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =