Fwd: LFS Script suggestion

Alexander E. Patrakov patrakov at ums.usu.ru
Mon Jan 29 01:46:36 PST 2007


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



More information about the lfs-dev mailing list