09 Nov, 2008
Posted by: aqua In: Linux
grep command is used to locate a pattern in a file. By default it prints the line that contains the pattern.
Syntax
grep [option] pattern [file]
grep must have a pattern.
Option for grep
-c, --count
prints a count of matching lines for each input file instead of the normal output.
-E, --extended - regexp
interprets the attern as extended regula expression
-e pattern, --regexp=pattern
uses pattern
-F, --fixed-strings
interprets the pattern as a list of fixed strings
-f file, --file=file
obtains the search pattern from file.
--help
brief help
-r, --recursive
reads all files under directory
PHP is found on 32.84% of web sites. PHP 5.2.6 has now twice as many users as PHP 5.2.5. PHP 5 reaches 47.55% of the whole PHP market.
The full October 2008 PHP stats is available at nexen.net. 35.1 millions servers hosted on 2.1 millions IP were surveyed, and 12.7 were used for the statistics.
Rich Zygler has pointed out, johnmccain.com used MS Windows and .NET while barackobama.com used LAMP with PHP.
Obama – LAMP won.
Yahoo releases the Yahoo! Application Platform (YAP) , Yahoo! Social Platform (YSP) and Yahoo! Query Language (YQL).
Yahoo! Social Platform consists of a suite of REST-based social APIs from Yahoo! including: Profiles, Connections, Updates, Contacts and Status. Yahoo! Query Language (YQL) is a new web service API that lets you access other web services using a SQL-like language rather than typical programmatic access. You can think of it as a command line version of Pipes. Yahoo! Application Platform (YAP) supports a few programming models including:
1. Developer hosted execution of applications with access to Yahoo’s Social APIs and YQL.
2. Support for OpenSocial’s JavaScript API
3. Support for server-side YML tags.
PHPUGph.com members are entitled to a 1 year free account subscription at Mployd.ph. Mployd account subscription is worth Php 10,000 ($250).
Members can get the exclusive promo code by logging in at PHPUGPH.