On Sun, 14 Aug 2011, Joseph L. Casale wrote:
To: 'CentOS mailing list' centos@centos.org From: Joseph L. Casale jcasale@activenetwerx.com Subject: Re: [CentOS] grabbing ip address from kickstart pre
how can I go about extracting the IP address from with in the %pre section
I was going to do something like: cat /proc/cmdline | tr ' ' '\n' | grep ks=http | tr '/' ' ' | awk {' print $2'}
Since tr isnt available how else can I do it?
Jerry, You ever solve this? You can do this all with awk alone.
The thing is if it's in the %pre section, AWK would not have been installed yet?
Kind Regards,
Keith Roberts
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos