Re: Power Poster for Binaries

From: Julian Bradfield (jcb_at_inf.ed.ac.uk)
Date: 07/25/05


Date: Mon, 25 Jul 2005 20:32:55 +0000 (UTC)

In article <1847724.IciQ1gGzub@linux.user.and.happy>,
CWO4 Dave Mann <misterfixit@loveable.com> wrote:

>And I am assuming that the bit of shell code can be named and invoked by a
>alias with values to be plugged in on the fly - pausing to wait for input
>of the needed data? That would be too cool -- like writing a batch file
>for DOS, sort of.

Of course - except that Unix shell scripts are far more powerful than
DOS batch files. You can either write an actual file, or you can just
define a function in your shell start-up file.

>Would you have a recommendation for a shell programming text which I might
>check out from the Library?

Unfortunately not. Put unix shell programming into Google, and see
what pops up.
One thing to note is that the modern "bash" shell shipped with almost
all Linux distributions has a lot of powerful and convenient features
that the old "sh" doesn't have. The line I gave would not work in an
old "sh". I don't know whether most books or online tutorials cover
this, so you might want to look explicitly for bash programming.



Relevant Pages

  • Re: OT MP3s
    ... doesn't handle spaces in file names as easy as a UNIX shell would... ... it's one of those archaic features of DOS that is still around for ... v1.1 diskette in one of my diskette boxes somewhere... ... With regards to 'cat', I have MKS Toolkit on my Windows machines, so I get ...
    (rec.scuba)
  • Re: OT MP3s
    ... I tend not to make that sort of assumptions... ... doesn't handle spaces in file names as easy as a UNIX shell would... ... it's one of those archaic features of DOS that is still around for ... v1.1 diskette in one of my diskette boxes somewhere... ...
    (rec.scuba)
  • Re: Ada.Command_Line and wildcards
    ... Markus E Leypold wrote: ... with the Unix shell? ... Is that sort of like the DOS and VMS command lines? ...
    (comp.lang.ada)
  • Re: sed to extract middle
    ... >>it a sed script? ... > As this newgroups is called comp.unix.shell, it's a Unix shell ... > If you want a DOS batch file, ... Or, as you've suggested many times, switch to awk. ...
    (comp.unix.shell)