Message from discussion
Awk Split Question
Received: by 10.180.105.38 with SMTP id gj6mr657690wib.0.1348233624311;
Fri, 21 Sep 2012 06:20:24 -0700 (PDT)
MIME-Version: 1.0
Path: q11ni9090881wiw.1!nntp.google.com!feeder1.cambriumusenet.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From: "Chris F.A. Johnson" <cfajohn...@gmail.com>
Newsgroups: comp.unix.shell
Subject: Re: Awk Split Question
Date: Sat, 15 Sep 2012 03:38:24 -0400
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <gsndi9-nmp.ln1@cjlocal.com>
References: <9e5c6dd3-bb22-40d3-a6d4-3f419fab9f53@googlegroups.com> <20120914221039.799@kylheku.com>
Reply-To: cfajohn...@gmail.com
Injection-Info: mx04.eternal-september.org; posting-host="1d41590df89a409baf71eb6a6bebbbbc";
logging-data="6464"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX1+qHaf2zBtlkRFmu7CDMmRdLIr83PwwEwA="
User-Agent: slrn/0.9.8.1 (Linux)
Cancel-Lock: sha1:XsyVTr4gRrDn19KpVK+AuKgTn/w=
Bytes: 1809
On 2012-09-15, Kaz Kylheku wrote:
> On 2012-09-15, Beery <mentorbe...@gmail.com> wrote:
>> I have a file containing rows like
>>
>> MemTotal: 32959876 kB\nMemFree: 309820 kB\nBuffers: 563784 kB...
>
> LOL! See the "Simple Query" here:
>
> http://rosettacode.org/wiki/Category:TXR
What? Yet another unnecessary language?
> Note that that code will work even if the fields of /proc/meminfo are
> reordered, and interspersed with fields that you don't need.
What does /proc/meminfo have to do with the question?
--
Chris F.A. Johnson, author <http://shell.cfajohnson.com/>
===================================================================
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)