Skip to content

Instantly share code, notes, and snippets.

@MVesuviusC
Created October 5, 2023 13:56
Show Gist options
  • Save MVesuviusC/da9e16a8b3926601a44cbbcf7c40b47c to your computer and use it in GitHub Desktop.
Save MVesuviusC/da9e16a8b3926601a44cbbcf7c40b47c to your computer and use it in GitHub Desktop.
sed
#capture groups
sed \
-E 's/.+(GA.+CA).+/stuff_\1_stuff/' \
/reference/homo_sapiens/hg19/ucsc_assembly/illumina_download/Sequence/WholeGenomeFasta/genome.fa \
| head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment