[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Storke langsomt bash script [SOLVED]



Björn Lundin skrev:
> 2010/6/4 Martin Dupont Ahrentsen <sslug@sslug>:
 ....

> 
>> 3.
>>        AWK løsningen som Kristian Duss Østergaard er klart vinderen. Process
>> tiden her er nede på ca 1½ sekund!! Samtidig med at det var super let at
>> integrere i det eksisterende script som også sørger for at distribuere
>> output filen ud til ca 15 servere ved hjælp af awk -f <navn>.awk <inputfil>
>>   >    <outputfil>.
> 
> 
> Den är svår att slå...
> 


Ja AWK er god til text-in -> text-out med match / regular expressions,
også ganske simpel opbygning og let at lære.
Lidt trist at de fleste kun bruger AWK til at printe et argument i input
i stil med   y=$(xxxx-prog | awk ' {print $1}')
og lader andet script rode med resten.

"man awk" viser alt man har brug for.
(pånær regular expressions, der må man læse mere dybdegående andetsteds)

AWK er fra 1977 og navnet  står for "opfindernes" iniatialer.

Alfred Aho (kendt fra "Dragebogen" om oversætterteknik), Peter Weinberger,
og Brian Kernighan (ham fra C-bogen)

http://en.wikipedia.org/wiki/AWK


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-07-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *