[Info-ingres] Print a database location from a script.

Me-ow! fritbongwonkabwaki at googlemail.com
Thu Nov 27 16:58:43 UTC 2014


In this case, the journal location.

Could use infodb and hack about:

infodb ${dbname} | grep ' JOURNAL ' | awk '{print $3}'

Or (a tiny bit safer but still inelegant):

infodb ${dbname} | grep location | grep ' JOURNAL ' | awk '{print $3}'

Can you think of a nice way?



More information about the Info-ingres mailing list