Horje
bash delete a range of lines from a file Code Example
bash delete a range of lines from a file
# Basic syntax using sed:
sed 'm,nd' input_file
# Where m is the start line number and n is the end line number inclusive

# Note, add -i to delete the lines in place. E.g.: 
sed -i 'm,nd' input_file # This changes the original input_file




Shell

Related
suspend command for linux Code Example suspend command for linux Code Example
Git Code Push Code Example Git Code Push Code Example
delete commit from PR Code Example delete commit from PR Code Example
install mongodb with brew Code Example install mongodb with brew Code Example
windows docker update clock Code Example windows docker update clock Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13