[CentOS] parsing /proc/cmdline

Fri Mar 7 16:10:31 UTC 2008
Sergio Belkin <sebelk at gmail.com>

2008/3/7, Alfred von Campe <alfred at von-campe.com>:
> > Hi - I am not an expert at shell script writing.
>
>
> Me neither, Perl is my thing, and with regular expressions this would
>  be trivial.
>
>
>  > If /proc/cmdline looks like
>  >
>  > option1 option2 ... ks=http://192.168.1.8/ks/ks.cfg option3 option
>  > 4 ...
>  >
>  > How can I get the 192.168.1.8 out of this cmdline.
>
>
> This is probably not the best approach, but it should work:
>
>    awk -F "ks=" /proc/cmdline '{print $2}' | awk -F / '{print $3}'
>

Sorry for the intromision, but I tried it and didn't work  :S

Greets!
-- 
--
Open Kairos http://www.openkairos.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -