cvs: php4 /sapi/cli php.1.in

From: Date: Wed, 21 May 2003 18:41:28 +0000
Subject: cvs: php4 /sapi/cli php.1.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21188@lists.php.net to get a copy of this message
derick Wed May 21 14:41:28 2003 EDT Modified files: /php4/sapi/cli php.1.in Log: -Fix notice Index: php4/sapi/cli/php.1.in diff -u php4/sapi/cli/php.1.in:1.2 php4/sapi/cli/php.1.in:1.3 --- php4/sapi/cli/php.1.in:1.2 Sat Feb 15 20:23:11 2003 +++ php4/sapi/cli/php.1.in Wed May 21 14:41:28 2003 @@ -14,7 +14,7 @@ ./" | Author: Marcus Boerger <helly@php.net> | ./" +----------------------------------------------------------------------+ ./" -./" $Id: php.1.in,v 1.2 2003/02/16 01:23:11 helly Exp $ +./" $Id: php.1.in,v 1.3 2003/05/21 18:41:28 derick Exp $ ./" .TH PHP 1 "Feb 2003" "The PHP Group" "Scripting Language" .SH NAME @@ -309,7 +309,7 @@ \fIphp \-E 'echo "Lines: $argi\\n";'\fP Using this PHP command you can count the lines being input. .TP -\fIphp \-R '$l+=count(file($argn));' \-E'echo "Lines:$l\\n";'\fP +\fIphp \-R '@$l+=count(file($argn));' \-E 'echo "Lines:$l\\n";'\fP In this example PHP expects each input line beeing a file. It counts all lines of the files specified by each input line and shows the summarized result. You may combine this with tools like find and change the php scriptlet.

« previous php.cvs (#21188) next »