sduser1
asked on
Parsing the string in bash script
VERSION="Google Chrome 76.0.3809.100" . (Need to split and get only the version (76.0.3809.100)
#echo $VERSION
IFS=' ' read -a VERSION <<< "$VERSION"
if "${VERSION[@]}"= "76.0.3809.100"
then
echo "${VERSION[@]}"
fi
It is not working. Please help.
#echo $VERSION
IFS=' ' read -a VERSION <<< "$VERSION"
if "${VERSION[@]}"= "76.0.3809.100"
then
echo "${VERSION[@]}"
fi
It is not working. Please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome!
ASKER