For example- $x=xyz.2.3.4.fc15.i686
output require=15
(i.e. between fc and .i686)
$ x=xyz.2.3.4.fc15.i686
$ y=${x#*fc}
$ z=${y%.*}
$ echo $z
15
# left strip% right stripIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With