On Sun, 14 Aug 2011, Joseph L. Casale wrote: > To: 'CentOS mailing list' <centos@xxxxxxxxxx> > From: Joseph L. Casale <jcasale@xxxxxxxxxxxxxxxxx> > Subject: Re: 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@xxxxxxxxxx > http://lists.centos.org/mailman/listinfo/centos > -- ----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] ----------------------------------------------------------------- _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos