From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OWq01-0007OH-Ur for garchives@archives.gentoo.org; Thu, 08 Jul 2010 12:14:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6970FE091F; Thu, 8 Jul 2010 12:14:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4149CE091F for ; Thu, 8 Jul 2010 12:14:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E86141B405C for ; Thu, 8 Jul 2010 12:14:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.408 X-Spam-Level: X-Spam-Status: No, score=-2.408 required=5.5 tests=[AWL=0.191, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hCj9xN7abIQx for ; Thu, 8 Jul 2010 12:14:16 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id D6D5E1B4032 for ; Thu, 8 Jul 2010 12:14:15 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OWpzV-000576-Ez for gentoo-user@gentoo.org; Thu, 08 Jul 2010 14:14:09 +0200 Received: from blueboticspc1.epfl.ch ([128.179.67.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jul 2010 14:14:09 +0200 Received: from remy.blank by blueboticspc1.epfl.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jul 2010 14:14:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Remy Blank Subject: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net? Date: Thu, 08 Jul 2010 14:13:59 +0200 Message-ID: References: <4C35BF45.1050005@oversi.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE1722DE5715DDBCF1A73AB70" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: blueboticspc1.epfl.ch User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.5.0 In-Reply-To: <4C35BF45.1050005@oversi.com> X-Enigmail-Version: 1.0.1 X-Archives-Salt: 3c414f6f-bc3d-4b61-a7b1-d47e413337fc X-Archives-Hash: 5593fe8955f59a39d6835443e89b5781 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE1722DE5715DDBCF1A73AB70 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Amit Dor-Shifer wrote: > Can anyone recommend a tool that can parse networking info from a/m=20 > file, so one can use it to query, e.g. what is the static IP configured= =20 > on eth0? bash? No, I'm not joking. The file is a bash script, and hence can just be sourced by another bash script, which could then print the relevant information in any desired format. -- Remy --------------enigE1722DE5715DDBCF1A73AB70 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFMNcEHCeNfIyhvXjIRAnn3AJ4iyQWEh6VblhEg8hgYFmjV0rXWTQCeKu4Y 8NtU9eQaPpvomKCtZ37g5G4= =mA2r -----END PGP SIGNATURE----- --------------enigE1722DE5715DDBCF1A73AB70--