I want help putting these specs into a vars
Standard Ram: value into $VAR1
Maximum Ram: value into $VAR2
Apple Model No: value into $VAR3
Model ID: into $VAR4
I was thinking
cat | awk
would do the trick but I am lost in getting these to work correctly.
I assume you wanted the value into shell variables, not awk variables since you used a dollar sign prefix in your example.
First example works only in Kshell (cleaner if you're willing to use kshell). Second example, with a hack needed to get the variables will work in bash. I don't regularly use bash, so maybe there is a better/easier way, but I'm not finding it in my brain tonight.