Created
December 26, 2022 10:50
-
-
Save typeless/e4aa8ff8a72baa2cad5c75ea52cc8259 to your computer and use it in GitHub Desktop.
Sed regex parsing shared libraries filename on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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