sh(1) command substitution and here documents
Shutoku Shia
smileyf at ucscb.UCSC.EDU
Sun Jun 26 11:15:20 AEST 1988
In article <3920 at saturn.ucsc.edu> smileyf at ucscb.UCSC.EDU (Shutoku Shia) writes:
>one other soln. is (instead of using here doc):
>
>#!/bin/sh
>float_var=`echo "scale = 4; 3/4" | bc"`
-
I made a mistake here .. there should be no double quote following
bc.
Shutoku Shia
-----------------------------------------------------------------------
| Bitnet: smileyf at ucscf.bitnet | formerly in |
| Internet: smileyf at ucscf.UCSC.EDU | Dept. of Cmp. & Info. Sci. |
| Arpanet: smileyf at ucscf.UCSC.EDU | Univ. of Calif., Santa Cruz |
| Uucp: ...!ucbvax!ucscc!ucscf!smileyf | |
-----------------------------------------------------------------------
More information about the Comp.unix.wizards
mailing list