Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Alternatives to sed + awk
- Date: Thu, 03 Mar 2011 12:47:23 +0900
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] Alternatives to sed + awk
- References: <AANLkTim_-D9CFYC8TNp33ni85zB+QBA7jV=BpLN=4SbZ@example.com> <4D6EF812.2090206@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
> Adding a bit to what Josh said about Perl, if I am not > mistaken, I think PHP is primarily used for web development? PHP is also a commandline tool, and works fine. It is not as terse as perl, but your scripts will be of similar length to the python or ruby version for things like scanning files, search-and-replace, socket connections, web mining, etc. There is even the -r flag to run commands without writing a script, e.g. php -r '$s=file_get_contents("http://tlug.jp/");echo strlen($s).",".substr_count($s,"Japan")."\n";' The commandline version is usually installed separately by distros; on Ubuntu/Debian you want the "php5-cli" package (*). Under Centos/RH the package is called "php-cli". Darren *: You can also configure them differently if you wish, under /etc/php5 you'll find directories for apache2, cli and conf.d, the latter being config used by both. -- Darren Cook, Software Researcher/Developer http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles)
- References:
- [tlug] Alternatives to sed + awk
- From: Nguyen Vu Hung
- Re: [tlug] Alternatives to sed + awk
- From: Raymond Wan
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Alternatives to sed + awk
- Next by Date: Re: [tlug] Alternatives to sed + awk
- Previous by thread: Re: [tlug] Alternatives to sed + awk
- Next by thread: Re: [tlug] Alternatives to sed + awk
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links