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 (
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
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
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
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
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
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
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
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
>
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
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,
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
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
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
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
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 |
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
17 matches
Mail list logo