RE: [CentOS] parsing /proc/cmdline

2008-03-10 Thread Dag Wieers
On Mon, 10 Mar 2008, Jim Wight wrote: On Fri, 2008-03-07 at 11:59 -0500, Ross S. W. Walker wrote: Ross S. W. Walker wrote: Jerry Geis wrote: Hi - I am not an expert at shell script writing. If /proc/cmdline looks like option1 option2 ... ks=http://192.168.1.8/ks/ks.cfg option3 option 4 ...

RE: [CentOS] parsing /proc/cmdline

2008-03-10 Thread Jim Wight
On Fri, 2008-03-07 at 11:59 -0500, Ross S. W. Walker wrote: > Ross S. W. Walker wrote: > > Jerry Geis wrote: > > > > > > Hi - I am not an expert at shell script writing. > > > If /proc/cmdline looks like > > > > > > option1 option2 ... ks=http://192.168.1.8/ks/ks.cfg option3 > > > option 4 ... >

Re: [CentOS] parsing /proc/cmdline

2008-03-08 Thread William L. Maltby
It's Saturday A.M, so please forgive me. On Fri, 2008-03-07 at 10:54 -0500, Filipe Brandenburger wrote: > On Fri, Mar 7, 2008 at 10:35 AM, Jerry Geis <[EMAIL PROTECTED]> wrote: > > If /proc/cmdline looks like > > > > option1 option2 ... ks=http://192.168.1.8/ks/ks.cfg option3 option 4 ... > > >

RE: [CentOS] parsing /proc/cmdline

2008-03-07 Thread Ross S. W. Walker
Ross S. W. Walker wrote: > Jerry Geis wrote: > > > > Hi - I am not an expert at shell script writing. > > 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. > > Try: > > #

RE: [CentOS] parsing /proc/cmdline

2008-03-07 Thread Ross S. W. Walker
Jerry Geis wrote: > > Hi - I am not an expert at shell script writing. > 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. Try: # IPADDR=`cat /proc/cmdline | sed 's/.*\/\([1-9][0-9

Re: [CentOS] parsing /proc/cmdline

2008-03-07 Thread Stephen Harris
I didn't see the original, so I'm jumping in here... > >Hi - I am not an expert at shell script writing. > > >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 should work

Re: [CentOS] parsing /proc/cmdline

2008-03-07 Thread Sergio Belkin
2008/3/7, Alfred von Campe <[EMAIL PROTECTED]>: > > 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

Re: [CentOS] parsing /proc/cmdline

2008-03-07 Thread Alfred von Campe
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. T

Re: [CentOS] parsing /proc/cmdline

2008-03-07 Thread Filipe Brandenburger
On Fri, Mar 7, 2008 at 10:35 AM, Jerry Geis <[EMAIL PROTECTED]> wrote: > 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. Cryptic but does the job: $ cat /tmp/cmdline option1 option2

[CentOS] parsing /proc/cmdline

2008-03-07 Thread Jerry Geis
Hi - I am not an expert at shell script writing. 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. THanks, Jerry ___ CentOS mailing list CentOS@cen