Skip to content

Instantly share code, notes, and snippets.

@typeless
Created December 26, 2022 10:50
Show Gist options
  • Save typeless/e4aa8ff8a72baa2cad5c75ea52cc8259 to your computer and use it in GitHub Desktop.
Save typeless/e4aa8ff8a72baa2cad5c75ea52cc8259 to your computer and use it in GitHub Desktop.
Sed regex parsing shared libraries filename on Linux
sed --debug -n 's/lib\([^.]\+\)\.so\(\.[0-9]\+\)\(\.[0-9]\+\)\(\.[0-9]\+\)/\1/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment