>>>>> "tack" == tack  <[EMAIL PROTECTED]> writes:

    >> Because I'm trying to learn sh.  If I could do it without awk
    >> altogether, that would be ideal.

    tack> arrrrgh.  I guess no total awk solution then.  I think the
    tack> key here is to use the cr to grab whole lines at a time,
    tack> then use a pattern to substitute either that lines numerical
    tack> or alpha info into the string you're echoing.

I guess I'm just being silly trying to do it in sh.  I am writing
some shell scripts to set up iptables after parsing some existing and
some custom files in etc.

I wanted this to be as general purpose (works on any machine) as
possible, hence the use of sh.  But I think just about every distro
ships with python installed since many of the installers are in
python.  But then this might introduce the additional headache of
python version compatibility.  So maybe barebones is the best way.

Plus, it's always fun to learn something new.

JDH

Reply via email to