[Antelope] shell variables and dbsubset

Jonathan MacCarthy jkmacc at nmt.edu
Fri Nov 28 19:06:59 CST 2008


Hello, all.  I have a quick shell scripting question that I thought  
would be easy to answer, but I haven't found anything yet.
I'm simply trying to substitute a shell variable into a dbsubset  
call.  Something like:

#!/bin/sh

STATION="P21A"
dbsubset db.assoc 'sta == "$STATION" ' > out.view



...I've tried all sorts of escapes, but dbsubset will have none of  
them.  Does anyone see what I'm doing wrong?

Thank you in advance.

Best,
Jonathan



Jonathan MacCarthy
PhD Candidate in Seismology
New Mexico Institute of Mining and Technology
Dept. of Earth and Environmental Science, MSEC208
801 Leroy Place
Socorro, NM 87801
ph: 505.835.5418
web: www.ees.nmt.edu/~jkmacc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brtt.net/pipermail/antelope_brtt.net/attachments/20081128/0450dd55/attachment.html>


More information about the Antelope mailing list