Skip to content

Tag: linux

python way to find unique version of software

I’ve multiple components of a software (let’s call it XYZ) installed on my linux (RHEL 6.2) server running python 3.3. I’m trying to covert my install/upgrade script from shell to python. For that I need to fetch the version number, but only once. In my python script I’ve added the bel…

Multiple strings to one string comparison bash

I have a shell script like below. It works based on a condition that if $table contains test then executes small.sh, elde big.sh. Now I want to check if tables contains test , _test_and_results and success in if [[ “$table” =~ “test” ]]. How can I do that I have tried like below But wh…