help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command line assistance for awk functions


From: goncholden
Subject: Re: Command line assistance for awk functions
Date: Wed, 08 Mar 2023 18:33:45 +0000

------- Original Message -------
On Thursday, March 9th, 2023 at 5:00 AM, Dennis Williamson 
<dennistwilliamson@gmail.com> wrote:

> On Wed, Mar 8, 2023 at 10:32 AM goncholden <goncholden@protonmail.com> wrote:
>
>> ------- Original Message -------
>> On Thursday, March 9th, 2023 at 2:36 AM, 63l618u2@duck.com 
>> <63l618u2@duck.com> wrote:
>>
>>> Here are the man pages for awk online - you can also look up things as you 
>>> need to do them, or you can even use openai in the terminal to write awk 
>>> for you :)
>>
>> Very funny, but you miss the whole point. If you do not know what to do, 
>> simply say
>> "I do not know" !
>
> It wasn't clear from your original message that you wanted to document 
> user-written functions rather than builtin ones.

From the replies, it was surely unclear.

> Please see 
> https://www.gnu.org/software/gawk/manual/html_node/Getopt-Function.html which 
> includes a function for processing command line arguments (getopt) written in 
> Gawk (it may be portable to other AWKs).

I shall check that out for sure.

> You can use it to create a help dispatch function that calls various other 
> functions to output help, usage or other documentation. So you could have:
>
> myprog -h myfoo
>
> call myfoodoc to output documentation on myfoo for example.
>
> AWK is beyond the scope of this list which covers Bash.
>
> --
>
> Visit serverfault.com to get your system administration questions answered.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]