1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 <2009> 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 <2009> 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: caget with an array of space-containing strings |
From: | Matthieu Bec <[email protected]> |
To: | Carl Schumann <[email protected]> |
Cc: | [email protected] |
Date: | Thu, 26 Feb 2009 22:51:36 -0300 |
Hi Carl,if your string holds any kind of valuable information, it might be best to break it down as soon as you get in your ioc - other processes will make sense of it without having to re-parse the information, including caget. xml enthusiasts please destroy my argument but I found strings more like a convenient SMS. Looking at your output, if you're debugging something lower level consider a regexp (scripted, or awk if you want command line) will probably do the job.
Matthieu Carl Schumann wrote:
Hi,I am using the command-line caget with an array of space-containing strings. Apparently caget uses spaces to separate array elements. A space separator causes some difficultly in this case because the elements themselves contains spaces. For example, ...One can ask for specific elements as I have done, but that is a little bit inconvenient. Any suggestions?clx39:~ $ caget -# 1 ADC00.RNGS ADC00.RNGS 50, 10k: -10->0 clx39:~ $ caget ADC00.RNGSADC00.RNGS 9 50, 10k: -10->0 50, 10k: +-5 50, 10k: 0->10 50: -6->0, 10k: -5->0 50: +-3, 10k: +-2.5 50, 10k: 0->5 50: -5->0, 10k: -2->0 50: +-2.5, 10k: +-1 50: 0->5, 10k: 0->2clx39:~ $Thanks, Carl Schumann
-- Matthieu Bec Gemini Observatory Tel: +56 51 205785 c/o AURA, Casilla 603 Fax: +56 51 205650 La Serena, Chile