[ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.33-0.1
Eric Blake
eblake@redhat.com
Fri Oct 24 17:57:00 GMT 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20141024/77b54161/attachment.sig>
More information about the Cygwin
mailing list