Re: [gentoo-user] is a nice "place" :-D

2011-05-19 Thread Walter Dnes
On Wed, May 18, 2011 at 10:28:55PM +0200, Alan McKinnon wrote > The difference between bash and perl? > > Perl was inspired by a linguist, who at least puts his foot down at > the truly crazy suggestions. Bash has no such thing. Perl is a bloated mediocre operating system, complete with repo (

Re: [gentoo-user] is a nice "place" :-D

2011-05-18 Thread Alan McKinnon
Apparently, though unproven, at 22:15 on Wednesday 18 May 2011, Alan Mackenzie did opine thusly: > Hi, Alan. > > On Wed, May 18, 2011 at 09:03:47PM +0200, Alan McKinnon wrote: > > Apparently, though unproven, at 12:17 on Wednesday 18 May 2011, Neil > > Bothwick > > > > did opine thusly: > > > O

Re: [gentoo-user] is a nice "place" :-D

2011-05-18 Thread Alan Mackenzie
Hi, Alan. On Wed, May 18, 2011 at 09:03:47PM +0200, Alan McKinnon wrote: > Apparently, though unproven, at 12:17 on Wednesday 18 May 2011, Neil Bothwick > did opine thusly: > > On Tue, 17 May 2011 18:38:33 +0100, Stroller wrote: > > > Not addressed at you, specifically, but it rather seems like

Re: [gentoo-user] is a nice "place" :-D

2011-05-18 Thread Neil Bothwick
On Wed, 18 May 2011 21:03:47 +0200, Alan McKinnon wrote: > > They both have a steep initial learning curve, which leads to their > > adoption being put off. I put awk in the same category as screen, one > > of those programs that you hear people going on about for years, but > > always manage to p

Re: [gentoo-user] is a nice "place" :-D

2011-05-18 Thread Alan McKinnon
Apparently, though unproven, at 12:17 on Wednesday 18 May 2011, Neil Bothwick did opine thusly: > On Tue, 17 May 2011 18:38:33 +0100, Stroller wrote: > > Not addressed at you, specifically, but it rather seems like sed & awk > > are much under-appreciated these days. I'd guess that this may be du

Re: [gentoo-user] is a nice "place" :-D

2011-05-18 Thread Neil Bothwick
On Tue, 17 May 2011 18:38:33 +0100, Stroller wrote: > Not addressed at you, specifically, but it rather seems like sed & awk > are much under-appreciated these days. I'd guess that this may be due > to the changing nature of *nix users, but they seem to have "gone out > of fashion". Aside from sed

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread Stroller
On 17/5/2011, at 11:43am, Pandu Poluan wrote: > On 2011-05-17, Neil Bothwick wrote: >> On Tue, 17 May 2011 01:33:39 +0200, Alan McKinnon wrote: >> >>> grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | >>> \ awk '{print $1}' | sort | uniq | wc >>> >> ... >> awk does pattern match

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread David Haller
Hello, On Tue, 17 May 2011, Alan McKinnon wrote: >grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | \ >awk '{print $1}' | sort | uniq | wc useless use of ... awk '/GET \/Tmp\/Linux\/G/{ips[$1]++;}END{print length(ips);}' \ /var/log/apache2/access_log I add each access to ips

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread Pandu Poluan
On 2011-05-17, Alex Schuster wrote: > Juan Diego Tascón writes: > >> I have always wondered if there is a way to do awk '{ print $1}' using >> only builtin bash functions when you only have a one line string > > str="one two five" > > # remove all from the first blank on, but will not work with >

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread Juan Diego Tascón
On Tue, May 17, 2011 at 8:36 AM, Alex Schuster wrote: > Juan Diego Tascón writes: > >> I have always wondered if there is a way to do awk '{ print $1}' using >> only builtin bash functions when you only have a one line string > > str="one two five" > > # remove all from the first blank on, but wil

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread Alex Schuster
Juan Diego Tascón writes: > I have always wondered if there is a way to do awk '{ print $1}' using > only builtin bash functions when you only have a one line string str="one two five" # remove all from the first blank on, but will not work with # other whitespace echo ${str%% *} or # set $1,

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread Juan Diego Tascón
On Tue, May 17, 2011 at 5:43 AM, Pandu Poluan wrote: > On 2011-05-17, Neil Bothwick wrote: >> On Tue, 17 May 2011 01:33:39 +0200, Alan McKinnon wrote: >> >>> grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | >>> \ awk '{print $1}' | sort | uniq | wc >>> >>> In true grand Unix trad

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread Pandu Poluan
On 2011-05-17, Neil Bothwick wrote: > On Tue, 17 May 2011 01:33:39 +0200, Alan McKinnon wrote: > >> grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | >> \ awk '{print $1}' | sort | uniq | wc >> >> In true grand Unix tradition you cannot get quicker, dirtier or more >> effective tha

Re: [gentoo-user] is a nice "place" :-D

2011-05-17 Thread Neil Bothwick
On Tue, 17 May 2011 01:33:39 +0200, Alan McKinnon wrote: > grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | > \ awk '{print $1}' | sort | uniq | wc > > In true grand Unix tradition you cannot get quicker, dirtier or more > effective than that > awk does pattern matching, o you

Re: [gentoo-user] is a nice "place" :-D

2011-05-16 Thread Felix Miata
On 2011/05/17 01:33 (GMT+0200) Alan McKinnon composed: grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | \ awk '{print $1}' | sort | uniq | wc In true grand Unix tradition you cannot get quicker, dirtier or more effective than that It almost worked too. :-) grep "GE

Re: [gentoo-user] is a nice "place" :-D

2011-05-16 Thread Willie Wong
On Tue, May 17, 2011 at 01:33:39AM +0200, Alan McKinnon wrote: > grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | \ > awk '{print $1}' | sort | uniq | wc > > In true grand Unix tradition you cannot get quicker, dirtier or more > effective > than that > You can replace "sort |

Re: [gentoo-user] is a nice "place" :-D

2011-05-16 Thread Alan McKinnon
Apparently, though unproven, at 01:10 on Tuesday 17 May 2011, Felix Miata did opine thusly: > After attempting to install for the first time last week, I started 3 > different threads here looking for help. I'm pleased with the nature of the > responses, and being able to succeed eventually using

[gentoo-user] is a nice "place" :-D

2011-05-16 Thread Felix Miata
After attempting to install for the first time last week, I started 3 different threads here looking for help. I'm pleased with the nature of the responses, and being able to succeed eventually using a mix of those responses and my own efforts digging into Google, gentoo.org and cranial cobwebs