Dan Nicholson wrote:
> This would seem to work (maybe the .* is too greedy).
> 
> sed -n 's/.*gcc version \([^() ]*\)[() ].*/\1/p;q' < /proc/version

The intent is to show not only the gcc version, but the kernel version too. 
Is there anything wrong with displaying the whole /proc/version file?

-- 
Alexander E. Patrakov
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to