From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JCPn4-0003q0-VW for garchives@archives.gentoo.org; Wed, 09 Jan 2008 01:31:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9778E0CF5; Wed, 9 Jan 2008 01:31:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id ACB17E0CF5 for ; Wed, 9 Jan 2008 01:31:33 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 4C47264D4B for ; Wed, 9 Jan 2008 01:31:33 +0000 (UTC) Received: from nightmorph by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JCPn2-0005Nw-7Z for gentoo-doc-cvs@lists.gentoo.org; Wed, 09 Jan 2008 01:31:32 +0000 To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] cvs commit: l-awk1.xml Message-Id: From: Joshua Saddler Date: Wed, 09 Jan 2008 01:31:32 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@lists.gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: bc951f04-4655-4260-842c-1ec7b56daa4b X-Archives-Hash: 02e38cde05f1e6bc74ee4f75506e5d63 nightmorph 08/01/09 01:31:32 Modified: l-awk1.xml Log: patch from bug 204946, as well as a couple of other small improvements to that paragraph Revision Changes Path 1.7 xml/htdocs/doc/en/articles/l-awk1.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/articles/l-awk1.xml?rev=1.7&view=markup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/articles/l-awk1.xml?rev=1.7&content-type=text/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/articles/l-awk1.xml?r1=1.6&r2=1.7 Index: l-awk1.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/l-awk1.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- l-awk1.xml 9 Oct 2005 17:13:23 -0000 1.6 +++ l-awk1.xml 9 Jan 2008 01:31:32 -0000 1.7 @@ -1,5 +1,5 @@ - + @@ -21,8 +21,8 @@ version of the original article, and contains various improvements made by the Gentoo Linux Documentation team --> -1.3 -2005-10-09 +1.4 +2008-01-08 An intro to the great language with the strange name @@ -56,13 +56,17 @@ The first awk +
+$ awk '{ print }' /etc/passwd
+
+

You should see the contents of your /etc/passwd file appear before your eyes. Now, for an explanation of what awk did. When we called awk, we specified /etc/passwd as our input file. When we executed awk, it -evaluated the print command for each line in /etc/passwd, in -order. All output is sent to stdout, and we get a result identical to catting -/etc/pass. +evaluated the print command for each line in /etc/passwd, in order. +All output is sent to stdout, and we get a result identical to catting +/etc/password.

-- gentoo-doc-cvs@lists.gentoo.org mailing list