autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assigning command output to a variable


From: Adam Mercer
Subject: Assigning command output to a variable
Date: Mon, 19 Nov 2012 11:09:03 -0600

Hi

For one of my projects I need to get the contents of
/etc/redhat-release during the configure process and assign the
contents to a variable. I'm currently using the following:

    redhat_release=`cat /etc/redhat-release 2> /dev/null`

This works fine, but I was wondering if anyone had any better suggestions?

Cheers

Adam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]