Re: [ Attn: Randy ] Ad-hoc Parsing?
From: Percival (dragontamer5788_at_yahoo.com)
Date: 12/19/04
- Next message: Frank Kotler: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- Previous message: Evenbit: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- In reply to: Herbert Kleebauer: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- Next in thread: T.M. Sommers: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 18 Dec 2004 23:11:18 -0500
Herbert Kleebauer wrote:
> Percival wrote:
>
>>Herbert Kleebauer wrote:
>
>
>>>echo {Sx{X?{Eu@Pq`Dkfk?a@o{A@CoCEFr@B@K~Tj~@CeK??BB0x>>out.com
>>>out.com ff 378
>
>>And, i don't see any advantage to actually writting something in
>>assembly, and using the assembler, compile out.com, then distributing
>>out.com with the file.
>
> Because if you have a collection of utilities on your computer
> which you frequently use in your scripts and then transfer one
> of the scripts to an other computer, then there always is
> at least one utility which is used by the script and which
> you have forgotten to copy. You don't have this problem
> if all is include within the script.
Winzip :)
Then just put pkzip or something small on the disk.
(BTW, I see your point and i'm just poking fun now.)
>>>the tools the script needs). And if all you need is included in
>>>the script in form of a few processor instruction (echo is an
>>>internal command), the this script can be executed even if there
>>>is nothing but the shell itself on the PC.
>>
>>echo works the (nearly exact) same way on *Nix systems.
>
>
> Yes, but you don't have a so simple executable file format
> like com files in DOS, which are nothing but CPU instructions
> (so you can generate executable files using printable ASCII
> characters only).
Well. It can't. The entire Unix model was built to be as far away from
the machine as possible. Thank goodness too, or else shell scripts
wouldn't have made the switch from PDP-11 to whatever system Unix is on
now. Though you do give a good point, and I accept your point.
>>I mean, user defined functions
>>
>>Like this in bash:
>>
>>#!/bin/bash
>>
>>function blah() { #this is a function
>> echo Hello World!!;
>>}
>>
>>blah #call the function twice
>>blah
>
> call :sub "hello world"
> call :sub "hello again"
> goto :eof
>
> :sub
> echo %1
> goto :eof
In that case :) Shows how little I go on Windows now.
Well, it seems everything that Unix shells have that Windows doesn't
have, is that you can rely that Unix has grep or sed just about as much
as Windows has WordPad. Almost all Unix machines have grep or sed
installed by default. And like Windows Wordpad, they could be removed.
Percival
- Next message: Frank Kotler: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- Previous message: Evenbit: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- In reply to: Herbert Kleebauer: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- Next in thread: T.M. Sommers: "Re: [ Attn: Randy ] Ad-hoc Parsing?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|