Skip to content

Instantly share code, notes, and snippets.

@Tekunogosu
Created September 2, 2023 05:29
Show Gist options
  • Save Tekunogosu/b5a21e8bc3395bdc81c4b0ec1a00362a to your computer and use it in GitHub Desktop.
Save Tekunogosu/b5a21e8bc3395bdc81c4b0ec1a00362a to your computer and use it in GitHub Desktop.
vim regex for gentoo kernel modules
#/lib/modules/6.5.0-gentoo-nox/kernel/virt/lib/irqbypass.ko
:%s/.*\/\([^/]\+\)\.k\{,1\}o\?$/\1/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment