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
Drawing Pixels in Plan9plan9
Making cgit look nicer
Sane defaults for tmux with more visible statusbar
Extend Lua with custom C functions using Clangc
Display xterm color palette
Write and read structs to/from files in Cc
Run 9front in Qemuplan9
Uninstall Ollama from a Linux box
Previews how man page written in Troff will look like
Minimal desktop setup with cwm and conky
Extract lines from a file with sed
Easy measure time took in a bash script
Personal sane Vim defaultsvim
Bulk thumbnails
Write ISO to USB Key