I have a file with many lines, with lines such as so:
PHP_VERSION="5.3.12"
NPM_VERSION="1.10"
From a linux command line, how would I take out just the version number? For this example, how would I get an output like 5.3.12
if for say I wanted the PHP version out of the given input file.
sed(1)
... you'd need to dosed -ne "s;${PKG}_VERSION=;;p" YourFileHere