From: "Brian Jackson" Subject: Re: string manipulating? Date: Mon, 06 Jan 2003 17:06:02 -0600 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <20030106230602.12208.qmail@escalade.vistahp.com> References: <200212081837.LAA15273@cu.imt.net> <3DF44FE9.69FB5E4D@ihug.co.nz> <3E186154.D32669EB@gelm.net> <20030105172002.1499.qmail@escalade.vistahp.com> <20030105172330.1547.qmail@escalade.vistahp.com> <3E18D2B9.1E3E415C@gelm.net> <3E19A91A.7EEB7666@wa5rrh.org> <3E19FE7E.B7900706@gelm.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3E19FE7E.B7900706@gelm.net> List-Id: Content-Type: text/plain; format="flowed"; charset="us-ascii" To: Chuck Gelm Cc: linux-newbie@vger.kernel.org Chuck Gelm writes: > Thanks, Jim & Brian: > > [info|man cut] > > LemmeC if I understand the > '-f' fields=LIST > > The LIST is a list of enumerated fields, i.e. > field1, field2, field3,... [ala: 1,2,3,4,5,6] > each separated by the delimiter. So, if "(" > is a delimiter, then the following strings: v > Interesting ports on as1-216-68-15-180.fuse.net (216.68.15.180): > Interesting ports on as1-216-68-15-184.fuse.net (216.68.15.184): > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ > This is field 1 and this is field 2 > exactly! > :-) > Chuck > > Jim Reimer wrote: >> >> Chuck Gelm wrote: >> > >> > Hi, Brian: >> > >> > Thanks. Your suggestion is the similar to Jim's with >> > the arguments reversed. >> > >> > You and Jim have fed me. Thanks. >> > Please teach me to fish. ;-) >> > >> >> See if you can get your hands on a copy of "Unix in a Nutshell" >> (System V edition) by O'Reilly. Doesn't always match up completely >> with Linux, but I've found it to be an invaluable reference - and it >> sure beats man pages. >> >> Covers all the standard Unix commands, KSH, CSH, Bourne shell, >> and has sections on pattern matching, Emacs, vi, ex, sed, awk, >> make, and other stuff I've never used. >> >> There's also "Linux in a Nutshell", but I've never seen a copy, >> and from looking at the table of contents on O'Reilly's web >> site, it looks light it may not cover commands the same way >> the Unix/Sys V book does. >> >> -jdr- > - > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.linux-learn.org/faqs - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs