[linux] Re: awk include probleem

lucas merckelbach merckelbach op yahoo.com
Wo Jul 12 12:29:45 CEST 2006



--- Hans Paijmans <j.j.paijmans op uvt.nl> wrote:

> Hoi,
> 
> Ik heb twee stukjes awk-code, bla, waarin een
> functie,
> en bla2, waarin de rest.
> 
> bla:
>   function hop()
>   {
>   print "KWAK"
>   }
> 
> bla2:
>   {
>   hop()
>   print "BOEM"
>   }
> 
> Het volgende werkt:
> 
>   awk -f bla -f bla2...
> 
> Het volgende werkt NIET, en dat is lastig
> 
>   awk -f bla '{hop();print "BOEM";}' ...

Ik zou gokken dat 

awk -f bla -W source='{hop();print "BOEM";}'

wel werkt (niet getest).

Succes,
lucas


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Linux mailing list