Unga wrote:
Dear all

This may be slightly OT, but I'm using on a FreeBSD machine. How
to convert following into bash style?

echo "${X}" > ${Z}
echo "${Y}" >> ${Z}


Exactly the same in posix standard /bin/sh or in bash.  bash(1) should
be capable of running any compliant /bin/sh script directly.  The converse
is not generally true, so for maximum portability write according to sh(1)
and avoid bash-isms.

If you're asking about converting csh to bourne shell, then that's a whole
other kettle of fish.  The echo commands above just happen to be the same in
either language, but that's one of the few points of confluence between the
two.  Typically you'ld have to know both languages and laboriously translate
between them.

        Cheers,

        Matthew

--
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                 Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to