From owner-svn-doc-head@freebsd.org Sun Jul 26 08:29:39 2015 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E0609A371E; Sun, 26 Jul 2015 08:29:39 +0000 (UTC) (envelope-from dru@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6DD45DE5; Sun, 26 Jul 2015 08:29:39 +0000 (UTC) (envelope-from dru@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6Q8TdFt019496; Sun, 26 Jul 2015 08:29:39 GMT (envelope-from dru@FreeBSD.org) Received: (from dru@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6Q8Tdb3019495; Sun, 26 Jul 2015 08:29:39 GMT (envelope-from dru@FreeBSD.org) Message-Id: <201507260829.t6Q8Tdb3019495@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dru set sender to dru@FreeBSD.org using -f From: Dru Lavigne Date: Sun, 26 Jul 2015 08:29:39 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r47085 - head/en_US.ISO8859-1/books/handbook/basics X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2015 08:29:39 -0000 Author: dru Date: Sun Jul 26 08:29:38 2015 New Revision: 47085 URL: https://svnweb.freebsd.org/changeset/doc/47085 Log: Fix redundancy. While here, correct usage of unix and tighten wording. Sponsored by: Essen Devsummit Hackathon Modified: head/en_US.ISO8859-1/books/handbook/basics/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/basics/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/basics/chapter.xml Sun Jul 26 08:13:26 2015 (r47084) +++ head/en_US.ISO8859-1/books/handbook/basics/chapter.xml Sun Jul 26 08:29:38 2015 (r47085) @@ -3178,14 +3178,14 @@ Swap: 2048M Total, 2048M Free Shell redirection is the action of sending the output or the input of a command into another command or into a file. To capture the output of the &man.ls.1; command, for example, - into a file, simply redirect the output: + into a file, redirect the output: &prompt.user; ls > directory_listing.txt - The directory_listing.txt file will - now contain the directory contents. Some commands allow you - to read input in a similar one, such as &man.sort.1;. To sort - this listing, redirect the input: + The directory contents will now be listed in + directory_listing.txt. Some commands can + be used to read input, such as &man.sort.1;. To sort this + listing, redirect the input: &prompt.user; sort < directory_listing.txt @@ -3196,26 +3196,24 @@ Swap: 2048M Total, 2048M Free &prompt.user; sort < directory_listing.txt > sorted.txt In all of the previous examples, the commands are - performing redirection using file descriptors. Every unix - system has file descriptors; however, here we will focus on - three, so named as Standard Input, Standard Output, and - Standard Error. Each one has a purpose, where input could be - a keyboard or a mouse, something that provides input. Output - could be a screen or paper in a printer for example. And - error would be anything that is used for diagnostic or error - messages. All three are considered I/O - based file descriptors and sometimes considered - streams. - - Through the use of these descriptors, short named stdin, - stdout, and stderr, the shell allows output and input to be - passed around through various commands and redirected to or - from a file. Another method of redirection is the pipe - operator. + performing redirection using file descriptors. Every &unix; + system has file descriptors, which include standard input + (stdin), standard output (stdout), and standard error + (stderr). Each one has a purpose, where input could be a + keyboard or a mouse, something that provides input. Output + could be a screen or paper in a printer. And error would be + anything that is used for diagnostic or error messages. All + three are considered I/O based file + descriptors and sometimes considered streams. + + Through the use of these descriptors, the shell allows + output and input to be passed around through various commands + and redirected to or from a file. Another method of + redirection is the pipe operator. The &unix; pipe operator, | allows the - output of one command to be directly passed, or directed to - another program. Basically a pipe will allow the standard + output of one command to be directly passed or directed to + another program. Basically, a pipe allows the standard output of a command to be passed as standard input to another command, for example: