Extract lines from a file with sed

note, Feb 15, 2024, on Mitja Felicijan's blog

Easy way to extract line ranges (from line 200 to line 210) with sed.

sed -n '200,210p' data/Homo_sapiens.GRCh38.dna.chromosome.18.fa

# then pipe it to a new file with

sed -n '200,210p' data/Homo_sapiens.GRCh38.dna.chromosome.18.fa > new.fa

head or tail could be used to extract from begining of the end of the file.

Other notes

DateTitle
Personal sane Vim defaultsvim
Execute not blocking async shell command in C#
Change permissions of matching files recursively
Sane default for Dungeon Crawl Stone Soup Online editiondcss
Sending signals to C programsc
10/GUI 10 Finger Multitouch User Interface
My brand new Plan9/9front desktopplan9
Make DCSS playable on 4k displaysdcss
Simple presentations with Markdown
Easy measure time took in a bash script
Run 9front in Qemuplan9
Grep to Less that maintain colors
Cronjobs on Github with Github Actions
Convert all MKV files into other formats
Previews how man page written in Troff will look like