[SunHELP] quoting and script generation

Virginia Walters vwalters at ceris.purdue.edu
Thu Feb 12 12:09:44 CST 2004


Try this:
     echo "allocate channel t1 type 'sbt_tape' parms=\"ENV=(NB_ORA_CLIENT=mydb)\";"
or this:
     echo 'allocate channel t1 type \'sbt_tape\' parms="ENV=(NB_ORA_CLIENT=mydb)";'

According to Markham, Richard:
>
>I'm trying to generate a text file which will contain alot
>of ' and " punctuation marks (an RMAN command script).
>
>example:
>
>#! /bin/ksh
>echo run{ > test.out
>echo 'allocate channel t1 type 'sbt_tape' parms="ENV=(NB_ORA_CLIENT=mydb)";'
>>> test.out
>
>~~
>the resulting test.out is missing the ' marks around sbt_tape.
>
>TIA
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list