<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Parse ifconfig data with shell scripts</title>
	<link>http://www.thelinuxblog.com/parse-ifconfig-data-with-shell-scripts/</link>
	<description>The Linux Blog, General Linux, Shell Scripts</description>
	<pubDate>Thu, 20 Nov 2008 12:37:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: TheLinuxBlog.com</title>
		<link>http://www.thelinuxblog.com/parse-ifconfig-data-with-shell-scripts/#comment-1268</link>
		<dc:creator>TheLinuxBlog.com</dc:creator>
		<pubDate>Thu, 30 Oct 2008 03:54:28 +0000</pubDate>
		<guid>http://www.thelinuxblog.com/parse-ifconfig-data-with-shell-scripts/#comment-1268</guid>
		<description>Hey Kitten, thanks for the tip. For those that get an error running the above, make sure to put an extra space behind the backslash in the cut if you didn't already figure that out.</description>
		<content:encoded><![CDATA[<p>Hey Kitten, thanks for the tip. For those that get an error running the above, make sure to put an extra space behind the backslash in the cut if you didn&#8217;t already figure that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kitten</title>
		<link>http://www.thelinuxblog.com/parse-ifconfig-data-with-shell-scripts/#comment-1263</link>
		<dc:creator>kitten</dc:creator>
		<pubDate>Mon, 27 Oct 2008 19:48:00 +0000</pubDate>
		<guid>http://www.thelinuxblog.com/parse-ifconfig-data-with-shell-scripts/#comment-1263</guid>
		<description>This helped me out a lot.  I needed to extract the ip address, so I modified your idea.  Worked great, but then I decided I could use spaces as the delimiter, obviating the need for tr, so I wound up with:

&lt;code&gt;ifconfig eth0 &#124;grep "inet addr" &#124;cut -d \  -f 12 &#124; sed 's/addr://' 
&lt;/code&gt;
Might be a time-saver for some, depending on what they're trying to do.  Anyway, thanks for the tips -- really got me started.</description>
		<content:encoded><![CDATA[<p>This helped me out a lot.  I needed to extract the ip address, so I modified your idea.  Worked great, but then I decided I could use spaces as the delimiter, obviating the need for tr, so I wound up with:</p>
<p><code>ifconfig eth0 |grep "inet addr" |cut -d \  -f 12 | sed 's/addr://'<br />
</code><br />
Might be a time-saver for some, depending on what they&#8217;re trying to do.  Anyway, thanks for the tips &#8212; really got me started.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
