View Single Post
locusf's Avatar
Posts: 159 | Thanked: 341 times | Joined on Dec 2007 @ Helsinki, Finland
#41
Originally Posted by lma View Post
Nitpicking: you don't really need cat, and the cut part could be a bit fragile as it relies on the amount of whitespace remaining constant. How about something like:

Code:
PROD=$(grep product /proc/component_version)
PROD=${PROD##* }
Thank you for that, this way it is really much more nicer . For got the ## completely.
__________________
Regards,
LoCusF
http://locusf.blogspot.com