On 10/24/2014 11:28 AM, Keith Christian wrote:
> uname_r ()
> {
>     uname -r | sed -e 's/[.(/\)]/_/g' | sed -e 's/\(.*\)\(_$\)/\1/'
> }

Or for one less fork and less typing:

uname_r ()
{
  uname -r | sed 's/[.(/\)]/_/g; s/_$//'
}

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to