-
-
Save Gottox/9929985 to your computer and use it in GitHub Desktop.
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
/usr/lib shlib="libfoo.so"; pattern="^lib[[:alnum:]_-]+\.so(\.[0-9]+)*$"; [[ $shlib =~ $pattern ]] && echo yes | |
yes | |
/usr/lib shlib="libfoo.so.33"; pattern="^lib[[:alnum:]_-]+\.so(\.[0-9]+)*$"; [[ $shlib =~ $pattern ]] && echo yes | |
yes | |
/usr/lib shlib="libfoo.so.33.2"; pattern="^lib[[:alnum:]_-]+\.so(\.[0-9]+)*$"; [[ $shlib =~ $pattern ]] && echo yes | |
yes | |
/usr/lib shlib="libfoo.so.33.2."; pattern="^lib[[:alnum:]_-]+\.so(\.[0-9]+)*$"; [[ $shlib =~ $pattern ]] && echo yes | |
/usr/lib gist | |
(type a gist. <ctrl-c> to cancel, <ctrl-d> when done) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment