On 09.12.2013 22:40, Joe Huang wrote:
> On Monday, December 9, 2013 12:44:06 AM UTC-8, Janis Papanagnou wrote:
>> On 09.12.2013 09:23, Joe Huang wrote:
>>
>>> I've been writing awk scripts for over 20 years, but I've found it
>>
>>> increasingly difficult to share my awk scripts with others, since it
>>
>>> requires having awk installed on their machine and some minimal
>>> knowledge
>>
>>> of writing unix syntax command lines.
>>
>>
>>
>> Well, to start a program from a shell, or bat or cmd interpreter, should
>>
>> not be a problem as long as your scripts are self-contained as it seems.
>>
>> (Are you aiming at programs started by clicke-di-clicke-di-click GUI?)
>
> Yes. The problem is not for me, since I always run my awk scripts from a
> command line box, but for others, who seem increasingly wedded to Windows
> OS and know only to click on icons. Not sure why you wrote
> "clicke-di-clicke-di-click", except to mock...
Yes, exactly; just to mock.
>>
>>
>>
>>> I've read on the Web that there are
>>
>>> versions of awk, esp. awkc, that can compile an awk script into an
>>
>>> executable program.
>>
>>
>>
>> You could distribute the gawk.exe together with your scripts.
>>
> That's what I have been doing, but it seems burdensome to explain to those
> unfamiliar with command line operations.
But you can register applications in WinDOS to start the awk interpreter
on the clicked file, don't you?
(Yes, the term "WinDOS" was also just mocking.)
>>
>>
>>> Does anyone know or have any recommendations on where
>>
>>> I can find such a program?
>>
>>
>>
>> How about doing a Google search? (Works for me.)
>
> Do you always write in such mocking tones?
Usually only in cases where I have got the impression that the poster
spent not the least effort to look that up himself. As said, it works
for me; I got immediately on the first few links relevant information.
(Thirty seconds effort, much less time than to post a question, or to
write a reply.)
> I only posted my question
> because I could only find mention of awkc on the Web, but no links to
> downloadable or purchasable copies, except as part of an entire Developer
> Kit.
To not leave you completely frustrated I'd like to point you to awka
(
http://awka.sourceforge.net/index.html); this is an awk compiler
that had been developed 10+ years ago[*]; it *may* serve your porpose
anyway.
Janis
[*] But to my knowledge, it isn't supported anymore, and newer WinDOS
versions are not yet mentioned, so it may or may not compile on you
system.